I created an SSO by changing the DNN V8 core Login.ascx control, and after I redirect to another page and have already logged in once, there's an object reference empty error, but it doesn't happen if I delete my cookies. Any idea why this might happen? I tried a few other answers I read on the forum to this exception, like changing the option for usernames to be emails, and looking at the module definitions table, but I'm confused because I can't even see where that code is being called. Does it happen behind the scenes in the OnUserAuthenticated(eventArgs); event call that's supplied by the var eventArgs = new UserAuthenticatedEventArgs(objUser, objUser.Username, UserLoginStatus.LOGIN_SUCCESS, "DNN")?
{
Authenticated = true,
Message = "",
RememberMe = false
};
Object reference not set to an instance of an object.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
|
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Security.Membership.AspNetMembershipProvider.UpdateUserMembership(UserInfo user) +98
DotNetNuke.Security.Membership.AspNetMembershipProvider.UpdateUser(UserInfo user) +332
DotNetNuke.Entities.Users.UserController.UpdateUser(Int32 portalId, UserInfo user, Boolean loggedAction, Boolean sendNotification, Boolean clearCache) +63
DotNetNuke.HttpModules.Membership.MembershipModule.AuthenticateRequest(HttpContextBase context, Boolean allowUnknownExtensions) +2014
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +91
|