Page view counter

DotNetNuke.ModuleLoadException

Last post 02-13-2006 1:32 AM by lilon. 4 replies.

Sort Posts:

  • DotNetNuke.ModuleLoadException

    12-09-2005, 9:52 AM
    • Loading...
    • agammehta
    • Joined on 12-09-2005, 2:37 PM
    • Posts 1
    • Points 5

    Hi,

    I 've created a new custom module which has bunch of fields elements in it (I'm using c#). I went and added DotNetNuke.dll in my reference and than compiled  my project. This project is stored under desktop modules folder.  But whenever I try to include it in contentpane I get the following error.

    Error loading module
    DotNetNuke.ModuleLoadException: Unhandled Error Adding Module to TopLeftContent ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Skin.InjectModule(Control objPane, ModuleSettings ModuleSettings, PortalSettings PortalSettings) in C:\Inetpub\wwwroot\CHAT_DNN\admin\Skins\Skin.vb:line 574 --- End of inner exception stack trace

    I did follow all the steps as documented but still returns same error.  I would really appreciated if, some one can point me in right direction.

    Thanks for your help.

  • Re: DotNetNuke.ModuleLoadException

    12-13-2005, 4:14 PM
    • Loading...
    • fredcouples
    • Joined on 09-08-2005, 9:47 PM
    • Posts 29
    • Points 145

    Sorry to say that I haven't solved the problem.

    I do however think that I'm closer to the what the problem is. In PortalModuleBase in the method IsEditable the following code fails:

    If Not Request.Cookies("_Tab_Admin_Preview" & PortalId.ToString) Is Nothing Then

       blnPreview = Boolean.Parse(Request.Cookies("_Tab_Admin_Preview" & PortalId.ToString).Value)

    End If

    The problem is the Request object throws the exception when is used. Just before the execution of the first line I use the Command Wíndow to check the value of the Request object - it shows a NullReferenceException.

    Hope others can add more to the solution. I get this error from time to time when I play around with the system.

  • Re: DotNetNuke.ModuleLoadException

    02-09-2006, 9:58 AM
    • Loading...
    • pwbriggs23
    • Joined on 01-13-2003, 11:00 AM
    • Posts 32
    • Points 160

    I have that EXACT issue. Did you ever find the issue? I don't know if the Response object is getting destroyed or there are issues in the module with viewstates.

    I get the same error, can anyone help?

  • Re: DotNetNuke.ModuleLoadException

    02-11-2006, 1:38 AM
    • Loading...
    • lilon
    • Joined on 08-24-2004, 6:13 PM
    • Posts 113
    • Points 565
    I am getting an NullReferenceException; Object reference not set to an instant of an object.
    The log viewer shows the origin of the problem in line 272 of PortalModuleBase which is exactly what you guys were refering to : If Not Request.Cookies("_Tab_Admin_Preview.... in the IsEditable().

    My only sin is that I put a runat="server" and "id=tblTop" in a user control (ascx) I am developing for my module. I also of course declare the table as an HtmlTable in the code behind, but before I even make any use of it in the code the user control throws the exception and crashes. I only have to delete the runat="server" for the error to dissappear. I have a similar user control with an identical table which works without a hitch.

    Any ideas why it does it, and how to solve it. I realy need this table as a htmlTable on the server.

    thanks
  • Re: DotNetNuke.ModuleLoadException

    02-13-2006, 1:32 AM
    • Loading...
    • lilon
    • Joined on 08-24-2004, 6:13 PM
    • Posts 113
    • Points 565

    Just an update to let you know that I got rid of the problem, although I have no idea why or how. I had in my ascx an asp:panel, which I only declared in the code behind, and didnt even use it yet for anything. Once I took this panel out everything started working well,

    Not much help I am afarid...

Page 1 of 1 (5 items)