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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0CanCan't Install Custom Module on Another Site After Packaging
Previous
 
Next
New Post
11/16/2009 3:31 PM
 

Hi all,

I created a custom module in VS 2008 Web Developer by creating a LinqToSQL data source in a new folder in the App_Code folder and and a new folder in DesktopModules with 2 Web User controls for view and settings and associated VB code. I compiled the module and "installed" using Host-->Module Definitions-->Create New Module, then added the controls to the definition. Everything works perfectly on our development site where I was writing the code in VS Web Developer. Again from the module definitons, I choose my module and clicked the "Create Package" button at the bottom of the definition page, select defaults, and the package is created. On our live site, I go to Host-->Module Definitions and select Install Module, choose the package I just created (with .zip extension), and click Next, and I receive the error: "A critical error has occurred. Object reference not set to an instance of an object." In the site's Event Viewer, the following message is displayed:

 

11/16/2009 2:00:51 PM   Page Load Exception   tjanes     AssemblyVersion: 5.1.4; PortalID: 0; PortalName< ...
AssemblyVersion: 5.1.4
PortalID: 0
PortalName: XXXXXXXXXXXX, XXXXXXXXXXXX
UserID: 10
UserName: tjanes
ActiveTabID: 18
ActiveTabName: Module Definitions
RawURL: /tabid/18/ctl/Install/rtab/18/portalid/0/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://notthereal.name.com/tabid/18/ctl/Install/rtab/18/portalid/0/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 4.0.20506)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 73bada58-8c4b-4041-a035-ca5677a06348
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.WebControls.FieldEditorControl.CreateEditor
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.UI.WebControls.FieldEditorControl.CreateEditor() at DotNetNuke.UI.WebControls.FieldEditorControl.DataBind() at DotNetNuke.UI.WebControls.PropertyEditorControl.AddFields(Table tbl) at DotNetNuke.UI.WebControls.PropertyEditorControl.CreateEditor() at DotNetNuke.UI.WebControls.PropertyEditorControl.DataBind() at DotNetNuke.Modules.Admin.Extensions.Install.BindPackage() at DotNetNuke.Modules.Admin.Extensions.Install.wizInstall_ActiveStepChanged(Object sender, EventArgs e) at System.Web.UI.WebControls.Wizard.OnActiveStepChanged(Object source, EventArgs e) at System.Web.UI.WebControls.Wizard.MultiViewActiveViewChanged(Object source, EventArgs e) at System.Web.UI.WebControls.MultiView.OnActiveViewChanged(EventArgs e) at System.Web.UI.WebControls.MultiView.set_ActiveViewIndex(Int32 value) at System.Web.UI.WebControls.Wizard.set_ActiveStepIndex(Int32 value) at DotNetNuke.Modules.Admin.Extensions.Install.wizInstall_ActiveStepChanged(Object sender, EventArgs e) at System.Web.UI.WebControls.Wizard.OnActiveStepChanged(Object source, EventArgs e) at System.Web.UI.WebControls.Wizard.MultiViewActiveViewChanged(Object source, EventArgs e) at System.Web.UI.WebControls.MultiView.OnActiveViewChanged(EventArgs e) at System.Web.UI.WebControls.MultiView.set_ActiveViewIndex(Int32 value) at System.Web.UI.WebControls.Wizard.set_ActiveStepIndex(Int32 value) at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String EVENT_ARGUMENT) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String EVENT_ARGUMENT) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String EVENT_ARGUMENT) 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: LIVESERVER

I'm pretty n00b at DNN, so I'm having trouble figuring out from the trace what the problem is. Any help would be greatly appreciated. If I can supply additional details, please let me know. By the way, both sites are v5.1.4 and running .NET 2.0

 

Thanks -Todd

 
New Post
11/16/2009 4:15 PM
 

I didni't include the source in the package the first time, so I went back and tried packaging and installing with the source. The package installed this time, but when I add an instance of the module to a page I get this error: "Exception has been thrown by the target of an invocation."

When I view the Event Viewer, this is what I see:

11/16/2009 3:07:01 PM   Page Load Exception   tjanes     AssemblyVersion: 5.1.4; PortalID: 0; PortalName< ...

AssemblyVersion: 5.1.4
PortalID: 0
PortalName: XXXXXXXX, XXXXXXXXX
UserID: 10
UserName: tjanes
ActiveTabID: 64
ActiveTabName: Module Name
RawURL: /Some/Path/To/afile.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://our.website.com/Path/To/File/tabid/64/ctl/Module/ModuleId/1072/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 4.0.20506)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 7007f169-a7b5-48e4-9965-f3272e592bdf
InnerException: Exception has been thrown by the target of an invocation.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: ModuleName.ModuleDataContext..ctor
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at
ModuleName.ModuleDataContext..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Web.HttpRuntime.FastCreatePublicInstance(Type type) at System.Web.UI.WebControls.LinqDataSourceView.CreateContext(Type contextType) at System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTable(DataSourceOperation operation) at System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTableForSelect() at System.Web.UI.WebControls.LinqDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) at System.Web.UI.WebControls.BaseDataList.GetData() at System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at System.Web.UI.WebControls.BaseDataList.EnsureDataBound() at System.Web.UI.WebControls.BaseDataList.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: OURSERVER

 

So it appears that the problems aren't going away. Any help would be great, thanks! -Todd

 
New Post
11/19/2009 4:07 PM
 

<p>When I opened the .dbml file in VS 2008 Web Developer, a message popped up to say that web.config did not have the correct data source settings and it would be updated from the .dbml data source. I also removed the data source in the layout manager for the dbml file and added it back in (not sure if that did anything). After that the module worked on the other site. I was able to do the same thing with two other modules.</p>

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0CanCan't Install Custom Module on Another Site After Packaging


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