I recently upgraded to dnn 5.1.4. When a user logs on, I immediatly get an error in my event-viewer which sais "object reference not set to an instance of an object". (see complete error description below). I get this error immediatly after a login.
If i have a look in the dnn-source-code, I see that it has someting to do with redirecting to the preferered locale...
AssemblyVersion: 5.1.4
PortalID: 0
PortalName: --: My Site :--
UserID: -1
UserName:
ActiveTabID: 36
ActiveTabName: Extensions
RawURL: /hockey/tabid/36/ctl/Login/portalid/0/language/nl-BE/Default.aspx?returnurl=%2fhockey%2fHome%2ftabid%2f36%2flanguage%2fnl-BE%2fDefault.aspx
AbsoluteURL: /Hockey/Default.aspx
AbsoluteURLReferrer:
http://www.hockey.be:8080/hockey/tabi...
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 5074f5f0-d5ed-4cdd-ac27-53394b6b3dff
InnerException: Object reference not set to an instance of an object.
FileName: F:\Inetpub\wwwroot\Hockey\Hockey\DesktopModules\Admin\Authentication\Login.ascx.vb
FileLineNumber: 183
FileColumnNumber: 21
Method: DotNetNuke.Modules.Admin.Authentication.Login.get_RedirectURL
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.Authentication.Login.get_RedirectURL() in F:\Inetpub\wwwroot\Hockey\Hockey\DesktopModules\Admin\Authentication\Login.ascx.vb:line 183 at DotNetNuke.Modules.Admin.Authentication.Login.ValidateUser(UserInfo objUser, Boolean ignoreExpiring) in F:\Inetpub\wwwroot\Hockey\Hockey\DesktopModules\Admin\Authentication\Login.ascx.vb:line 577 at DotNetNuke.Modules.Admin.Authentication.Login.UserAuthenticated(Object sender, UserAuthenticatedEventArgs e) in F:\Inetpub\wwwroot\Hockey\Hockey\DesktopModules\Admin\Authentication\Login.ascx.vb:line 940 at DotNetNuke.Services.Authentication.AuthenticationLoginBase.OnUserAuthenticated(UserAuthenticatedEventArgs ea) at DotNetNuke.Modules.Admin.Authentication.Login.cmdLogin_Click(Object sender, EventArgs e) in F:\Inetpub\wwwroot\Hockey\Hockey\DesktopModules\AuthenticationServices\DNN\Login.ascx.vb:line 187 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: