HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss..."Unhandled Error Adding Module to LeftPane" error in DNN 4.4.0"Unhandled Error Adding Module to LeftPane" error in DNN 4.4.0
Previous
 
Next
New Post
12/28/2006 3:41 PM
 

I'm getting a consistent & reproducible error (reported by a number of end users) with all of our modules (in this case, the Inventua SideMenu).  The error only occurs when the user is not logged on, and the stack trace indicates that it's not a result of anything I'm calling from the module, it looks like a bug in the core? 

ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 04.04.00
PortalID: 0
PortalName: My Website
UserID: -1
UserName:
ActiveTabID: 36
ActiveTabName: Home
RawURL: /DNN440/Home/tabid/36/Default.aspx
AbsoluteURL: /DNN440/Default.aspx
AbsoluteURLReferrer: http://localhost/DNN440/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: f979ca1b-bf86-425a-b149-80d214ac2436
InnerException: Unhandled Error Adding Module to LeftPane
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Security.PortalSecurity.HasNecessaryPermission
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to LeftPane ---> System.NullReferenceException: Object reference not set to an instance of an object.at DotNetNuke.Security.PortalSecurity.HasNecessaryPermission(SecurityAccessLevel AccessLevel, PortalSettings PortalSettings, ModuleInfo ModuleConfiguration, String UserName)at DotNetNuke.Entities.Modules.PortalModuleBase.CanAddAction(SecurityAccessLevel access, Boolean checkAdminControl)at DotNetNuke.Entities.Modules.PortalModuleBase.LoadActions()at DotNetNuke.Entities.Modules.PortalModuleBase.get_Actions()at DotNetNuke.UI.Skins.Skin.ProcessActionControls(PortalModuleBase objPortalModuleBase, Control objContainer)at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings)--- End of inner exception stack trace ---
Source:
Server Name: MONSTER


 
New Post
12/28/2006 4:38 PM
 

Further to this:  The error is on line 471 of PortalSecurity.vb.  If you change the existing line:

  If UserName.Length > 0 Then

to

  If UserName <> String.Empty Then

The problem is fixed.


 
New Post
12/29/2006 6:04 AM
 
Has anybody taken a look at this issue? There is a lot of Inventua side menu users out there.
 
New Post
12/29/2006 2:47 PM
 
Shaun's looking at it.

 
New Post
12/30/2006 5:40 AM
 

Is PortalSecurity.vb a file in the inventua module or DNN code (searched my upgrade package and could not find the file)?  I am having the same issue with my modules.  :-(

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss..."Unhandled Error Adding Module to LeftPane" error in DNN 4.4.0"Unhandled Error Adding Module to LeftPane" error in DNN 4.4.0


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me
Charlotte DoDNN

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Exact Target Exec Alert
PowerDNN
r2integrated

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.