【问题标题】:Sitecore 6.6 InvalidOperationException: 'Remember Me' checkboxSitecore 6.6 InvalidOperationException:“记住我”复选框
【发布时间】:2016-03-29 18:17:22
【问题描述】:

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

【问题讨论】:

  • 您确定它是原始 Sitecore dll 的一部分吗?命名空间Sitecore.sitecore.login 首先是 Sitecore 大写,然后是 Sitecore 小写,看起来有点可疑……这是一个干净的 Sitecore 实例吗?它过去是否有效,在您完成某事后停止工作?
  • 您可以尝试删除您的cookies并再次尝试登录吗?
  • 您是否修改了登录页面?
  • 这是一个现有的旧站点核心应用程序。我不是其初始配置的一部分,所以我不知道这是否被修改。首先,我没有看到 domain.com/sitecore/login 的登录页面或其代码隐藏文件
  • 后面的代码在Sitecore.Client.dll中找到

标签: c# asp.net sitecore sitecore6


【解决方案1】:

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

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

这是崩溃的地方。要解决此问题,请转到登录页面,该页面位于以下路径:Website\sitecore\login。用文本编辑器打开default.aspx,查看remember checkbox ID是否为Remember

【讨论】:

  • 是的。
  • 能否反编译 Sitecore.Client.dll 并在名称空间中查看 Sitecore.sitecore.login 如果代码如上?
  • 是的,匹配
  • 你检查过 Bin 文件夹中的 sitecore.client.dll 吗?
猜你喜欢
  • 2014-02-04
  • 2021-09-18
  • 2017-11-15
  • 1970-01-01
  • 1970-01-01
  • 2011-07-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多