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...Creat New Extension - A critical error has occurred Creat New Extension - A critical error has occurred
Previous
 
Next
New Post
3/10/2012 11:59 AM
 

Hello there,

whenever I try to add a new extension and after I choose "Module" and set its name and click "Next", I get the following error message:

""

A critical error has occurred. Object reference not set to an instance of an object.
Event viewer:

AssemblyVersion: 6.1.3

PortalID: 0

PortalName: MyWebsite

UserID: 2

UserName: admin

ActiveTabID: 36

ActiveTabName: Extensions

RawURL: /MyWebsite/Host/Extensions/tabid/36/ctl/NewExtension/mid/345/portalid/0/language/en-US/Default.aspx?popUp=true

AbsoluteURL: /MyWebsite/Default.aspx

AbsoluteURLReferrer: http://localhost/MyWebsite/Host/Extensions/tabid/36/ctl/NewExtension/mid/345/portalid/0/language/en-US/Default.aspx?popUp=true

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: ad83c82f-2f12-4549-a824-9b7ca4e5cbdb

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

FileName: d:\Prj\Sites\MyWebsite\DesktopModules\Admin\Extensions\Editors\ModuleEditor.ascx.cs

FileLineNumber: 347

FileColumnNumber: 13

Method: DotNetNuke.Modules.Admin.Extensions.ModuleEditor.OnLoad

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.Modules.Admin.Extensions.ModuleEditor.OnLoad(EventArgs e) in d:\Prj\Sites\MyWebsite\DesktopModules\Admin\Extensions\Editors\ModuleEditor.ascx.cs:line 347 at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.AddedControl(Control control, Int32 index) at DotNetNuke.Modules.Admin.Extensions.ExtensionWizard.BindPackageEditor() in d:\Prj\Sites\MyWebsite\DesktopModules\Admin\Extensions\ExtensionWizard.ascx.cs:line 160 at DotNetNuke.Modules.Admin.Extensions.ExtensionWizard.wizNewExtension_NextButtonClick(Object sender, WizardNavigationEventArgs e) in d:\Prj\Sites\MyWebsite\DesktopModules\Admin\Extensions\ExtensionWizard.ascx.cs:line 343 at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

 

after I did some debugging I noticed that the error is fired because that  "ctlPortals" in "ModuleEditor.ascx.cs" is null?!!

and when I opened the source code, "ctlPortals" appears as "doesn't exist object in the current context"

any help?!!

 
New Post
4/1/2012 9:02 AM
 
Any details about the error message?!!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Creat New Extension - A critical error has occurred Creat New Extension - A critical error has occurred


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