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?!!