Hi,
I am currently trying to transfer a custom application module from a DNN3 site to a DNN4 site. The main application is working fine with no problems but I am getting problems when trying to add the "Settings" page.
I have been into the module definition and added the control with a key of "Settings"
I have also selected "settings.ascx" from the dropdown box
I have also selected the Control Type of "Edit"
I get no problems when adding this information to the Module but when I then go to a page with the module on and select "Settting" from the dropdown actions menu, the control bombs out and reports "A Critical Error has occurred"
Are there any changes in the way settings controls work between DNN3 and DNN4 or can anyone suggest what maybe going wrong?
Thanks
Trev
The detailed error from the log viewer is below:
AssemblyVersion: 04.03.01
Method: DotNetNuke.Modules.Repository.Settings.Page_Load
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 1
PortalName: BOS
UserID: 1
UserName: host
ActiveTabID: 72
ActiveTabName: Find an Orthodontist
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
ExceptionGUID: 444e091d-3167-4712-acd3-3617185e45e1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Object reference not set to an instance of an object.
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Repository.Settings.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: IIS684
This is the code of the settings.ascx file
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="Settings.ascx.vb" Inherits="DotNetNuke.Modules.Repository.Settings" TargetSchema="http://schemas.microsoft.com/intellisense/ie3-2nav3-0" %>
<%@ Register TagPrefix="Portal" TagName="URL" Src="~/controls/URLControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<table cellSpacing="2" cellPadding="2" border="0">
<tr>
<td nowrap width="180" class="SubHead"><dnn:label id="plSearchType" runat="server" controlname="cboSearchType" text="Search Type:"></dnn:label></td>
<td width="300">
<asp:dropdownlist id="cboSearchType" runat="server" Width="300"></asp:dropdownlist>
</td>
</tr>
<TR>
<TD nowrap width="180" class="SubHead"><dnn:label id="plchkTest" runat="server" controlname="chkTest" text="Search in Test Mode:"></dnn:label></TD>
<TD width="300"><asp:CheckBox id="chkTest" runat="server"></asp:CheckBox></TD>
</TR>
</table>