Sitecore 6.6 InvalidOperationException:'记住我'复选框

时间:2016-03-29 18:17:22

标签: c# asp.net sitecore sitecore6

Sitecore 6.6 登录失败,无论我是选中还是取消选中"记住我"

虽然错误详细信息显示了该方法,但我无法调试它,因为它是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

1 个答案:

答案 0 :(得分:0)

错误是由于缺少“记住我”复选框ID。请参阅下面Sitecore.Client.dll的反编译代码

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

这是崩溃的地方。要解决此问题,请转到以下路径中的登录页面: Website \ sitecore \ login 。使用文本编辑器打开 default.aspx ,查看记住复选框ID是否为记住