• Not Answered

Getting "Cannot access a disposed object. Object name: 'MembershipUserManager" when logging into sitecore 9.2 after installing Habitat

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:

[ObjectDisposedException: Cannot access a disposed object.
Object name: 'MembershipUserManager'.]
   Microsoft.AspNet.Identity.UserManager`2.ThrowIfDisposed() +80
   Microsoft.AspNet.Identity.UserManager`2.FindByNameAsync(String userName) +26
   Microsoft.AspNet.Identity.Owin.<PasswordSignInAsync>d__29.MoveNext() +144

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) +115
   Sitecore.Owin.Authentication.Security.AuthenticationManager.Login(String userName, String password, Boolean persistent, Boolean allowLoginToShell) +245
   Sitecore.Owin.Authentication.Security.AuthenticationManager.Login(String userName, String password, Boolean persistent) +24
   Sitecore.sitecore.login.Default.Login() +86
   Sitecore.sitecore.login.Default.LoginClicked(Object sender, EventArgs e) +50
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +138
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5445

1 Reply