Here is the error that we receive - A critical error has occurred.Object reference not set to an instance of an object.
This error occurs whenever we choose the "Configuration" option from the Gallery drop down menu.
There must be something else that needs to be changed.
Your help would be appreciated.
Our Gallery Settings.ascx file contains the following:
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SectionHead" Src="~/controls/SectionHeadControl.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Modules.Gallery.WebControls" Assembly="DotNetNuke.Modules.Gallery" %>
<%@ Register TagPrefix="TTP" TagName="LookupControl" Src="./Controls/ControlLookup.ascx" %>
<%@ Control language="vb" CodeBehind="Settings.ascx.vb" AutoEventWireup="false" Inherits="DotNetNuke.Modules.Gallery.Settings" %>
<script language=javascript
src='<%= Page.ResolveUrl("DesktopModules/Gallery/Popup/gallerypopup.js") %>'></script>
<link href="<%= GalleryConfig.Css() %>" type=text/css rel=stylesheet>
<table class="Gallery_Container" id="tblMain" cellSpacing="0" cellPadding="0" width="750"
align="center">
<tr>
<td class="Gallery_HeaderCapLeft" id="celHeaderLeft" runat="server"><img
src='<%=Page.ResolveUrl(GalleryConfig.GetImageURL("spacer_left.gif"))%>'
></td>
<td class="Gallery_HeaderImage" id="celHeader" width="100%"> <asp:label id="lblAdminTitle" CssClass="Gallery_HeaderText"
text="Gallery Configuration" resourcekey="GalleryConfiguration"
Runat="server">Gallery Configuration</asp:label></td>
<td class="Gallery_HeaderCapRight" id="celHeaderRight"><img
src='<%=Page.ResolveUrl(GalleryConfig.GetImageURL("spacer_left.gif"))%>'
></td>
</tr>
<tr id="rowAdmin" vAlign="top" runat="server">
<td class="Gallery_RowCapLeft" id="celBodyLeft0" vAlign="top"> </td>
<td class="Gallery_Header" vAlign="top" align="left"><dnn:sectionhead id="dshAdminSettings" runat="server" text="Admin Settings"
resourcekey="AdminSettings"
includerule="True" section="tblAdminSettings" cssclass="Gallery_AltHeaderText"></dnn:sectionhead>
<table class="Gallery_Border" id="tblAdminSettings" cellSpacing="1" cellPadding="0" width="100%"
runat="server">
<tr>
<td class="Gallery_RowPanel" width="220" height="24"> <dnn:label id="plRootURL" runat="server"
text="Root URL:" controlname="txtRootURL"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="RootURL" runat="server"
cssclass="NormalTextBox" width="100%"></asp:textbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24"> <dnn:label id="plSkin" runat="server"
text="Themes:" controlname="ddlSkins"></dnn:label></td>
<td class="Gallery_Row" align="left"><dnn:templatelist id="ddlSkins" runat="server"
CssClass="NormalTextBox" TargetName="Themes" TargetType="Folder"
AutoPostBack="False" Width="320px"></dnn:templatelist></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plQuota" runat="server" text="Quota:" controlname="txtQuota"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtQuota" runat="server" cssclass="NormalTextBox"
width="75px"></asp:textbox> <asp:regularexpressionvalidator id="Regularexpressionvalidator9" runat="server" CssClass="NormalRed"
resourcekey="NumericValue.ErrorMessage"
ValidationExpression="[0-9]{1,}" ControlToValidate="txtQuota" ErrorMessage="Needs to
be numeric!"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plMaxFileSize" runat="server" text="Max File Size:"
controlname="txtMaxFileSize"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtMaxFileSize" runat="server"
cssclass="NormalTextBox" width="75px"></asp:textbox> <asp:regularexpressionvalidator id="Regularexpressionvalidator8" runat="server"
CssClass="NormalRed" resourcekey="NumericValue.ErrorMessage"
ValidationExpression="[0-9]{1,}" ControlToValidate="txtMaxFileSize"
ErrorMessage="Needs to be numeric!"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plAutoApproval" runat="server" text="Auto Approval:"
controlname="chkApproval"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkbox id="chkAutoApproval" runat="server"
CssClass="Normal"></asp:checkbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plBuildCacheOnStart" runat="server" text="Build Cache On Start:"
controlname="chkBuildCacheOnStart"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkbox id="chkBuildCacheOnStart" runat="server"
CssClass="Normal" Checked="True"></asp:checkbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plCategoryValues" runat="server" text="Category Values:"
controlname="txtCategoryValues"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtCategoryValues" runat="server"
cssclass="NormalTextBox" width="100%" Columns="26"></asp:textbox></td>
</tr>
<tr id="rowForumSelect" runat="server" visible="false">
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plForum" runat="server" text="Integrated Forum:"
controlname="ddlForum"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:dropdownlist id="ddlForum" runat="server"
CssClass="NormalTextBox" Width="180px"></asp:dropdownlist></td>
</tr>
</table>
</td>
<td class="Gallery_RowCapRight" id="celBodyRight0" vAlign="top"> </td>
</tr>
<tr id="rowDisplaySettings" vAlign="top" runat="server">
<td class="Gallery_RowCapLeft" id="celBodyLeft2" vAlign="top"></td>
<td class="Gallery_Header" vAlign="top" align="left"><dnn:sectionhead id="dshDisplaySettings" runat="server" text="Display Settings"
resourcekey="DisplaySettings"
includerule="True" section="tblDisplaySettings" cssclass="Gallery_AltHeaderText"
isExpanded="False"></dnn:sectionhead>
<table id="tblDisplaySettings" cellSpacing="1" cellPadding="0" width="100%" runat="server">
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plGalleryTitle" runat="server" text="Gallery Title:"
controlname="txtGalleryTitle"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtGalleryTitle" runat="server"
cssclass="NormalTextBox" width="100%"></asp:textbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plImageExtensions" runat="server" text="Image Extensions:" controlname="lblImageExtensions"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:label id="lblImageExtensions" runat="server" CssClass="Normal"></asp:label></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24"> <dnn:label id="plMediaExtensions" runat="server" text="Media Extensions:"
controlname="lblMediaExtensions"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:label id="lblMediaExtensions" runat="server" CssClass="Normal"></asp:label></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plDescription" runat="server" text="Description:"
controlname="txtDescription"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtDescription" runat="server"
cssclass="NormalTextBox" width="100%" TextMode="MultiLine"></asp:textbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plFixedWidth" runat="server" text="Max Fixed Width:"
controlname="txtFixedWidth"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtFixedWidth" runat="server"
cssclass="NormalTextBox" width="75px"></asp:textbox> <asp:regularexpressionvalidator id="RegularExpressionValidator5" runat="server"
CssClass="NormalRed" resourcekey="NumericValue.ErrorMessage"
ValidationExpression="[0-9]{1,}" ControlToValidate="txtFixedWidth"
ErrorMessage="Needs to be numeric!"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plFixedHeight" runat="server" text="Max Fixed Height:"
controlname="txtFixedHeight"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtFixedHeight" runat="server"
cssclass="NormalTextBox" width="75px"></asp:textbox> <asp:regularexpressionvalidator id="Regularexpressionvalidator11" runat="server"
CssClass="NormalRed" resourcekey="NumericValue.ErrorMessage"
ValidationExpression="[0-9]{1,}" ControlToValidate="txtFixedHeight"
ErrorMessage="Needs to be numeric!"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plStripWidth" runat="server" text="Strip Width:"
controlname="txtStripWidth"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtStripWidth" runat="server"
cssclass="NormalTextBox" width="75px" Columns="26"></asp:textbox> <asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server"
CssClass="NormalRed" resourcekey="NumericValue.ErrorMessage"
ValidationExpression="[0-9]{1,}" ControlToValidate="txtStripWidth"
ErrorMessage="Needs to be numeric!"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plStripHeight" runat="server" text="Strip Height:"
controlname="txtStripHeight"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtStripHeight" runat="server"
cssclass="NormalTextBox" width="75px" Columns="26"></asp:textbox> <asp:regularexpressionvalidator id="RegularExpressionValidator2" runat="server"
CssClass="NormalRed" resourcekey="NumericValue.ErrorMessage"
ValidationExpression="[0-9]{1,}" ControlToValidate="txtStripHeight"
ErrorMessage="Needs to be numeric!"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plMaxThumbWidth" runat="server" text="Max Thumb Width:"
controlname="txtMaxThumbWidth"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtMaxThumbWidth" runat="server"
cssclass="NormalTextBox" width="75px" Columns="26"></asp:textbox> <asp:regularexpressionvalidator id="RegularExpressionValidator3" runat="server"
CssClass="NormalRed" resourcekey="NumericValue.ErrorMessage"
ValidationExpression="[0-9]{1,}" ControlToValidate="txtMaxThumbWidth"
ErrorMessage="Needs to be numeric!"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plMaxThumbHeight" runat="server" text="Max Thumb Height:"
controlname="txtMaxThumbHeight"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtMaxThumbHeight" runat="server"
cssclass="NormalTextBox" width="75px" Columns="26"></asp:textbox> <asp:regularexpressionvalidator id="Regularexpressionvalidator6" runat="server"
CssClass="NormalRed" resourcekey="NumericValue.ErrorMessage"
ValidationExpression="[0-9]{1,}" ControlToValidate="txtMaxThumbHeight"
ErrorMessage="Needs to be numeric!"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plDisplay" runat="server" text="Display Info:"
controlname="lstDisplay"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkboxlist id="lstDisplay" runat="server" width="100%" Font
-Size="8pt" Font-Names="Verdana,Arial"
RepeatColumns="1"></asp:checkboxlist></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plSortProperties" runat="server" text="Sort Properties:"
controlname="lstSortProperties"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkboxlist id="lstSortProperties" runat="server" width="100%"
Font-Size="8pt" Font-Names="Verdana,Arial"
RepeatColumns="1"></asp:checkboxlist></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plGallerySort" runat="server" text="Default Sort:"
controlname="lstSortProperties"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:dropdownlist id="ddlGallerySort" runat="server"
CssClass="NormalTextBox" Width="180px"></asp:dropdownlist><asp:checkbox id="chkDESC" runat="server" CssClass="Normal" resourcekey="Descending"
Text="Descending"></asp:checkbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plGalleryView" runat="server" text="Default View:"
controlname="ddlGalleryView"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:dropdownlist id="ddlGalleryView" runat="server"
CssClass="NormalTextBox" Width="180px"></asp:dropdownlist><asp:checkbox id="chkChangeView" runat="server" CssClass="Normal"
resourcekey="VisitorChangeView"
Text="Visitors can change view."></asp:checkbox></td>
</tr>
</table>
</td>
<td class="Gallery_RowCapRight" id="celBodyRight2" vAlign="top"></td>
</tr>
<tr vAlign="top">
<td class="Gallery_RowCapLeft" id="celBodyLeft3" vAlign="top"></td>
<td class="Gallery_Header" vAlign="top" align="left"><dnn:sectionhead id="dshFeatureSettings" runat="server" text="Feature Settings"
resourcekey="FeatureSettings"
includerule="True" section="tblFeatureSettings" cssclass="Gallery_AltHeaderText"
isExpanded="False"></dnn:sectionhead>
<table id="tblFeatureSettings" cellSpacing="1" cellPadding="0" width="100%" runat="server">
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plSlideshowSpeed" runat="server" text="Slideshow Speed:"
controlname="txtSlideshowSpeed"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:textbox id="txtSlideshowSpeed" runat="server"
cssclass="NormalTextBox" width="75px" Columns="26"></asp:textbox> <asp:regularexpressionvalidator id="RegularExpressionValidator7" runat="server"
CssClass="NormalRed" resourcekey="NumericValue.ErrorMessage"
ValidationExpression="[0-9]{1,}" ControlToValidate="txtSlideShowSpeed"
ErrorMessage="Needs to be numeric!"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plSlideshow" runat="server" text="Enable Slideshow?"
controlname="chkSlideshow"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkbox id="chkSlideshow" runat="server"
CssClass="Normal"></asp:checkbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plPopup" runat="server" text="Enable Popup?"
controlname="txtPopup"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkbox id="chkPopup" runat="server"
CssClass="Normal"></asp:checkbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plMultiLevelMenu" runat="server" text="Multi Level Menu?"
controlname="chkMultiLevelMenu"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkbox id="chkMultiLevelMenu" runat="server"
CssClass="Normal"></asp:checkbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plWatermark" runat="server" text="Enable Watermark?"
controlname="chkWatermark"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkbox id="chkWatermark" runat="server"
CssClass="Normal"></asp:checkbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plExif" runat="server" text="Enable Exif?"
controlname="chkExif"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkbox id="chkExif" runat="server"
CssClass="Normal"></asp:checkbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plVoting" runat="server" text="Enable Voting?"
controlname="chkVoting"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkbox id="chkVoting" runat="server"
CssClass="Normal"></asp:checkbox></td>
</tr>
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plDownload" runat="server" text="Enable Download?"
controlname="chkDownload"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkbox id="chkDownload" runat="server"
CssClass="Normal"></asp:checkbox></td>
</tr>
<tr id="rowDownloadRoles" runat="server">
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plDownloadRoles" runat="server" text="Download Roles:"
controlname="ctlDownloadRoles"></dnn:label></td>
<td class="Gallery_Row" align="left"><TTP:LOOKUPCONTROL id="ctlDownloadRoles"
runat="server"></TTP:LOOKUPCONTROL></td>
</tr>
</table>
</td>
<td class="Gallery_RowCapRight" id="celBodyRight3" vAlign="top"></td>
</tr>
<tr vAlign="top">
<td class="Gallery_RowCapLeft" id="celBodyLeft4" vAlign="top"></td>
<td class="Gallery_Header" vAlign="top" align="left"><dnn:sectionhead id="dshPrivateGallery" runat="server" text="Private Gallery"
resourcekey="PrivateGallery"
includerule="True" section="tblPrivateGallery" cssclass="Gallery_AltHeaderText"
isExpanded="False"></dnn:sectionhead>
<table id="tblPrivateGallery" cellSpacing="1" cellPadding="0" width="100%" runat="server">
<tr>
<td class="Gallery_RowPanel" width="220" height="24">
<dnn:label id="plPrivate" runat="server" text="Is Private"
controlname="chkPrivate"></dnn:label></td>
<td class="Gallery_Row" align="left"><asp:checkbox id="chkPrivate" runat="server"
CssClass="Normal"></asp:checkbox></td>
</tr>
<tr id="rowForumModerateAdmin" runat="server">
<td class="Gallery_RowPanel" width="220" height="24"> <dnn:label id="plOwnerLookup"
runat="server" text="Owner:" controlname="ctlOwnerLookup"></dnn:label></td>
<td class="Gallery_Row" align="left"><TTP:LOOKUPCONTROL id="ctlOwnerLookup"
runat="server"></TTP:LOOKUPCONTROL></td>
</tr>
</table>
</td>
<td class="Gallery_RowCapRight" id="celBodyRight4" vAlign="top"></td>
</tr>
<tr>
<td class="Gallery_FooterCapLeft" id="celFooterLeft" vAlign="top"></td>
<td class="Gallery_FooterImage" align="center"><asp:linkbutton id="cmdSave" runat="server" text="Update" resourcekey="cmdUpdate"
cssclass="CommandButton"></asp:linkbutton>
<asp:linkbutton id="cmdReturn" runat="server" text="Cancel" resourcekey="cmdCancel"
cssclass="CommandButton"></asp:linkbutton></td>
<td class="Gallery_FooterCapRight" id="celFooterRight" vAlign="top"></td>
</tr>
<tr>
<td class="Gallery_BottomCapLeft" id="celleftBottomLeft" vAlign="top"></td>
<td class="Gallery_Bottom" id="celBottom" align="center">
</td>
<td class="Gallery_BottomCapRight" id="celBottomRight" vAlign="top"></td>
</tr>
</table>