Hello. I just recently upgraded to 5.2.1 and now after any user logs in it throws the following error:
A critical error has occurred.
Object reference not set to an instance of an object.
The page loads (displays the error inline, but all other features & functions are fine) and the event viewer shows that the login occurred successfully. This error does not display on the page during subsequent page loads - only after login.
If anyone can provide any insight I would really appreciate it. I have searched through these forums, google, bing - everywhere I can think of - to find a solution. All to no avail.
Here is the stack trace:
AssemblyVersion: 5.2.1
PortalID: 0
PortalName: My Collaboration Portal
UserID: -1
UserName:
ActiveTabID: 327
ActiveTabName: Home
RawURL: /dotnetnuke/Default.aspx?tabid=327&ctl=Login&returnurl=%2fdotnetnuke%2fDefault.aspx%3ftabid%3d327
AbsoluteURL: /dotnetnuke/Default.aspx
AbsoluteURLReferrer: /dotnetnuke/Default.aspx?tabid=327&ctl=Login&returnurl=%2fdotnetnuke%2fDefault.aspx%3ftabid%3d327
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.0.3705; Media Center PC 4.0; .NET CLR 3.0.04506.30; InfoPath.2; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 728fe185-58b1-4270-bef5-e13564c1ed58
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Common.Utilities.XmlUtils.GetAttributeValueAsInteger
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.Common.Utilities.XmlUtils.GetAttributeValueAsInteger(XPathNavigator nav, String AttributeName, Int32 DefaultValue) at DotNetNuke.Common.Utilities.Config.GetPersistentCookieTimeout() at DotNetNuke.Entities.Users.UserController.UserLogin(Int32 portalId, UserInfo user, String PortalName, String IP, Boolean CreatePersistentCookie) at DotNetNuke.Modules.Admin.Authentication.Login.ValidateUser(UserInfo objUser, Boolean ignoreExpiring) at DotNetNuke.Modules.Admin.Authentication.Login.UserAuthenticated(Object sender, UserAuthenticatedEventArgs e) at DotNetNuke.Services.Authentication.AuthenticationLoginBase.OnUserAuthenticated(UserAuthenticatedEventArgs ea) at DotNetNuke.Modules.Admin.Authentication.Login.cmdLogin_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) 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: My-DNN-SERVER