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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesObject reference not set to an instance when adding module to pageObject reference not set to an instance when adding module to page
Previous
 
Next
New Post
3/24/2010 4:34 AM
 

Hello,

Version 5.2.2

I am new to DNN, but I have built a simple IFrame module based on the DNN IFrame, added the module to my website, but when I attempt to add the module to a page I get the following error..

An error has occurred.
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.Entities.Modules.ModuleController.AddModule(ModuleInfo objModule) at DotNetNuke.UI.ControlPanels.ControlPanelBase.AddNewModule(String title, Int32 desktopModuleId, String paneName, Int32 position, ViewPermissionType permissionType, String align) at DotNetNuke.UI.ControlPanels.IconBar.AddModule_Click(Object sender, EventArgs e) in C:\Business\TSS\Development\Net2005\DDN\v050202\VMSDNN\Admin\ControlPanel\IconBar.ascx.vb:line 500 --- End of inner exception stack trace ---

I have tried several things to get around the issue, one attempt was creating the module definition through DNN, adding a new source code file during the installation,  I then added the module to a page, which worked, but when I created a manifest file, uninstalled the module, then reinstalled using the unaltered manifest file with the newly created source file, which worked, now throws the same erorr.

Through debug, the failure occurs when calling AddModule.

Can someone direct me on what to try next.

Thanks in advance for your response.

MR 

 
New Post
3/24/2010 11:29 AM
 

Can you share the configuration of your view control.  My guess is that it is having an issue with potentially no control that has a blank ControlKey value.  As it is failing when trying to add the instance to the page.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
3/24/2010 4:20 PM
 

Mitchel,

Thanks for the quick response. 

Based on your reply, I started playing with the Edit Module Control area and noticed that on several other modules, the View control was not defined with a key.  I removed the word I entered for the main View control in my module and I was able to add the module to a page.  I am sure this is mentioned somewhere, but I missed it. 

Thanks for the guidance.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesObject reference not set to an instance when adding module to pageObject reference not set to an instance when adding module to page


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