Hello.
Today I tried to edit an user that was added months ago and I got errors: "A critical error has occurred. Object reference not set to an instance of an object.".
We have 3 almost identical DNN 06.01.05 (142) installations (development, test and live) running with all resulting in the same error when trying to edit an user.
I searched the web and tried every relative issue without any success. Specially this threat. I also tried adding a new user and editing this one results in the same error.
In the Log Viewer there are 6 exceptions that every time pop up after above error occurs, added below.
I hope someone can help us!
Regards, Jeroen
Error 1:
AssemblyVersion: 6.1.5
PortalID: 2
PortalName: XXXXX
UserID: 1
UserName: host
ActiveTabID: 168
ActiveTabName: User Accounts
RawURL: /home/admin/user-accounts/ctl/edit/mid/627/userid/keyfield/filter/all/currentpage/1/?popUp=true
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://XXXXX/Default/?tabid=168
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 5446543e-b1e1-416b-be00-b79ff0aa0ee9
InnerException: Input string was not in a correct format.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Number.StringToNumber
StackTrace:
Message: System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at DotNetNuke.Modules.Admin.Security.SecurityRoles.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Containers.Container.get_ModuleControl() at DotNetNuke.UI.Containers.Container.ProcessModule() at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)
Source:
Server Name: strawberry
Error 2:
AssemblyVersion: 6.1.5
PortalID: 2
PortalName: XXXXX
UserID: 1
UserName: host
ActiveTabID: 168
ActiveTabName: User Accounts
RawURL: /home/admin/user-accounts/ctl/edit/mid/627/userid/keyfield/filter/all/currentpage/1/?popUp=true
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://XXXXX/Default/?tabid=168
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: af9fd27e-ffca-4a27-8a91-f5142d4614c8
InnerException: Unhandled Error Adding Module to ContentPane
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Number.StringToNumber
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at DotNetNuke.Modules.Admin.Security.SecurityRoles.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Containers.Container.get_ModuleControl() at DotNetNuke.UI.Containers.Container.ProcessModule() at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module) --- End of inner exception stack trace --- at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module) at DotNetNuke.UI.Skins.Skin.InjectModule(Pane pane, ModuleInfo module)
Source:
Server Name: strawberry
Error 3:
ModuleId: 627
ModuleDefId: 15
FriendlyName:
ModuleControlSource: DesktopModules/Admin/Security/ManageUsers.ascx
AssemblyVersion: 6.1.5
PortalID: 2
PortalName: XXXXX
UserID: 1
UserName: host
ActiveTabID: 168
ActiveTabName: User Accounts
RawURL: /home/admin/user-accounts/ctl/edit/mid/627/userid/keyfield/filter/all/currentpage/1/?popUp=true
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://XXXXX/Default/?tabid=168
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 735a347c-9fd6-446d-bbe9-29a41e7a7aba
InnerException: Input string was not in a correct format.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Number.StringToNumber
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Input string was not in a correct format. ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at DotNetNuke.Entities.Modules.UserModuleBase.get_UserId() at DotNetNuke.Entities.Modules.UserModuleBase.get_User() at DotNetNuke.Modules.Admin.Users.ManageUsers.BindData() at DotNetNuke.Modules.Admin.Users.ManageUsers.OnLoad(EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: strawberry
Error 4:
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 6.1.5
PortalID: 2
PortalName: XXXXX
UserID: 1
UserName: host
ActiveTabID: 168
ActiveTabName: User Accounts
RawURL: /home/admin/user-accounts/ctl/edit/mid/627/userid/keyfield/filter/all/currentpage/1/?popUp=true
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://XXXXX/Default/?tabid=168
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 618ae108-d162-47d5-b17f-35c8a9e121e1
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Security.Permissions.ModulePermissionController.CanAddContentToPage
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Security.Permissions.ModulePermissionController.CanAddContentToPage(ModuleInfo objModule) at DotNetNuke.Modules.Admin.Security.SecurityRoles.DataBind() at DotNetNuke.Modules.Admin.Security.SecurityRoles.OnLoad(EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: strawberry
Error 5:
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 6.1.5
PortalID: 2
PortalName: XXXXX
UserID: 1
UserName: host
ActiveTabID: 168
ActiveTabName: User Accounts
RawURL: /home/admin/user-accounts/ctl/edit/mid/627/userid/keyfield/filter/all/currentpage/1/?popUp=true
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://XXXXX/Default/?tabid=168
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: d72e31a4-666b-4611-bb62-cf3ac11b1279
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Containers.ActionBase.get_ModuleContext
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: 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.Containers.ActionBase.get_ModuleContext() at DotNetNuke.UI.Containers.ActionBase.OnLoad(EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: strawberry
Error 6:
AssemblyVersion: 6.1.5
PortalID: 2
PortalName: XXXXX
UserID: 1
UserName: host
ActiveTabID: 168
ActiveTabName: User Accounts
RawURL: /home/admin/user-accounts/ctl/edit/mid/627/userid/keyfield/filter/all/currentpage/1/?popUp=true
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://XXXXX/Default/?tabid=168
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 657fa3d8-e860-47de-85b1-a69ea30b815e
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Containers.ActionButtonList.get_ModuleActions
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.Containers.ActionButtonList.get_ModuleActions() at DotNetNuke.UI.Containers.ActionButtonList.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: strawberry