簡體   English   中英

Sitecore 6.6 InvalidOperationException:“記住我”復選框

[英]Sitecore 6.6 InvalidOperationException: 'Remember Me' checkbox

無論我選中還是取消選中“記住我”, 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

該錯誤是由於缺少“記住我”復選框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是否為“ 記住”

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM