Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Module Load Exception Error in custom ModuleModule Load Exception Error in custom Module
Previous
 
Next
New Post
7/8/2014 3:49 PM
 

Hi,

 I'm currently seeing a new error in a custom module (a menu module developed by my co-worker). Fortunately, this is occurring on a test server version of our website. The module is still working fine on the live site. (Live site is running 7.1.2, and test server is running 7.2.1). I don't know what happened/changed to cause the error to begin occurring. (It worked fine through the last upgrade, and the problem began at some point more recently.)

 What's interesting about the error, is that it only occurs in instances where the module  is invoked through the skin file. When the module is placed on a page through Add New Module, it works. But when it's coded in the skin, (as I have done on many pages/skins) the error occurs consistently.

What I've also noticed is that if I add the module to a page where the error is occurring (since the module is already on the page as coded in the skin), it fixed the error for both instances. Then, both the skin-coded instance and the added module instance both seem to work OK.

 Any ideas why this might be occurring and what might have caused it to begin suddenly? (The person who created the module is unavailable at this time).

Here is the error itself:

DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.SaviNavigation.GetNavigationNodes(DNNNode objRootNode, ToolTipSource eToolTips, Int32 intStartTabId, Int32 intDepth, Int32 intNavNodeOptions, Boolean showInvisible) at DotNetNuke.UI.Skins.Controls.SaviMenu.GetNavigationNodes(DNNNode objNode) at DotNetNuke.UI.Skins.Controls.SaviMenu.BuildNodes(DNNNode objNode) at DotNetNuke.UI.Skins.Controls.SaviMenu.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

 Thanks,

 Tom

 
New Post
7/8/2014 7:04 PM
 
Hi Tom,

Since modules and skin objects have different lifecycles, my guess would be that the module is assuming some object is available. The object is available when loaded as a module but has not yet been instantiated when loaded via the skin. Stepping through the code should identify the culprit.

Best,
Kelly

Create simple forms or build complete module solutions XMod Pro is the best-selling forms and views module of all time.
 
New Post
7/8/2014 7:50 PM
 
Thank you Kelly. I will do a debug when my colleague who developed the module returns. Any ideas on why this would suddenly show the problem. Nothing much has changed on the site. The module worked fine after upgrading to 7.2.1, then some time later, started to fail.

Thanks again, I appreciate your input.

Tom
 
New Post
7/9/2014 9:11 AM
 
Unfortunately, the object reference not set error doesn't provide enough data to debug from a distance like this. All I can say is that it is happening in the GetNavigationNodes() function. I can only speculate what might be in there. The fact that the error goes away when you put a module on a page would seem to point to an assumption being made about the environment the module is running in - expecting an object to be instantiated that isn't. It's impossible to know exactly what may be causing the issue without diving into the code, so I'm just throwing darts in the dark at this point :)

Best,
Kelly

Create simple forms or build complete module solutions XMod Pro is the best-selling forms and views module of all time.
 
New Post
7/15/2014 7:30 PM
 

Thanks for the info. I'm going to debug this when possible.

Tom

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Module Load Exception Error in custom ModuleModule Load Exception Error in custom Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out