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...Error adding custom module to a page. Error adding custom module to a page.
Previous
 
Next
New Post
7/21/2012 8:54 PM
 

I have created a custom module that has 3 user controls.  Each control inherits the PortalModuleBase Class.  Each user control uses the DotNetNuke.Modules.MyControl namespace.  My web application dll is in the bin of my website.  My user controls are in the DesktopModule's folder in a folder with the the module name.  Having said all of that I created a module definition with one of the user controls and I am able to put it on a page.  When I add the other 2 controls to the definition and try to put the module on the page it does nothing but when I look at the event viewer it states the below.  Any help is appreciated.  Thanks.

AssemblyVersion: 6.2.0

PortalID: 0

PortalName: Seth Temple C.O.G.I.C.

UserID: 1

UserName: host

ActiveTabID: 123

ActiveTabName: Test ChurchLocator Page

RawURL: /TestChurchLocatorPage.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://sethtemplelocal.org/TestChurchLocatorPage.aspx

UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: f6bf5170-66b4-486d-a15b-c7593ac88cdd

InnerException: Object reference not set to an instance of an object.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: DotNetNuke.Entities.Modules.ModuleController.AddModule

StackTrace:

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.Entities.Modules.ModuleController.AddModule(ModuleInfo module) at DotNetNuke.UI.ControlPanel.AddModule.DoAddNewModule(String title, Int32 desktopModuleId, String paneName, Int32 position, Int32 permissionType, String align) at DotNetNuke.UI.ControlPanel.AddModule.CmdAddModuleClick(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Source:

Server Name: B-139886

 
 
New Post
7/25/2012 5:53 PM
 
I figured it out. One of my user controls implemented the ModuleSettingsBase class. In my definition for that control in DNN I didn't have the control key set to "Settings". Once I used the proper key name it worked.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Error adding custom module to a page. Error adding custom module to a 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