简体   繁体   中英

Sitecore 6.6 InvalidOperationException: 'Remember Me' checkbox

Sitecore 6.6 login fails, irrespective of whether I check or un-check "Remember Me"

Though error details show the method, I cannot debug that as it is part of Sitecore DLL.

Server Error in '/' Application.

'Remember Me' checkbox.

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.InvalidOperationException: 'Remember Me' checkbox.

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: 


[InvalidOperationException: 'Remember Me' checkbox.]
   Sitecore.sitecore.login.LoginPage.Login_LoggedIn(Object sender, EventArgs e) +984
   System.Web.UI.WebControls.Login.AttemptLogin() +289
   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +93
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +84
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929

The error is due to the fact that the Remember Me checkbox ID is missing. Please see the decompiled code from the Sitecore.Client.dll below

  CheckBox checkBox = this.Login.FindControl("Remember") as CheckBox;
  Assert.IsNotNull((object) checkBox, "'Remember Me' checkbox.");

This is where it is crashing. In order to fix this, go to the login page, found in the following path: Website\\sitecore\\login . Open the default.aspx with a text editor and see if the remember checkbox ID is Remember

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM