安裝.NET 4.5後,訪問該針線任何用戶現在收到異常:Sitecore的針線拋出異常Cryptography.Purpose與.NET 4.5安裝
類型「System.Int32」的對象不能被轉換爲類型'System.Web.Security.Cryptography.Purpose'。
經過一些基本的谷歌搜索之後,看起來好像這個問題曾經發生在登錄上,並且在登錄時被解析爲6.5。我沒有登錄到Sitecore的問題。到目前爲止,我只在工作流程框中看到這個問題。
在.NET 4.5安裝之前,我們在.NET 4.0上運行時沒有任何問題。
有沒有人找到解決方案來安裝.NET 4.5運行的工作箱?
注:我目前使用Sitecore的6.5更新5
完整堆棧跟蹤:
[ArgumentException的:類型 'System.Int32' 的對象不能轉換爲類型' System.Web.Security.Cryptography.Purpose'。] System.RuntimeType.TryChangeType(Object value,Binder binder,CultureInfo culture,Boolean needsSpecialCast)+185 System.Reflection.MethodBase.CheckArguments(Object [] parameters,Binder binder,結合蛋白System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj,BindingFlags invokeAttr,Binder binder,Object []參數,CultureInfo culture)+206 System.Reflection.RuntimeMethodInfo.Invoke(Object obj ,的BindingFlags invokeAttr,粘結劑粘結劑,對象[]參數,CultureInfo的培養物)126 Sitecore.SecurityModel.Cryptography.CookieProtectionHelperWrapper.Encode(cookieProtection cookieProtection,字節[] buf中,的Int32計數)175個 Sitecore.Shell.Feeds.FeedUrlOptions。的ToString()192 Sitecore.Shell.Applications.Workbox.WorkboxForm.DisplayWorkflow(IWorkflow工作流程)496 Sitecore.Shell.Applications.Workbox.WorkboxForm.OnLoad(EventArgs的)545
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object target,Object [] arguments,Signature sig,Boolean構造函數)+0 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []參數,CultureInfo culture)+193 System.Reflection.MethodBase.Invoke(Object obj,Object [] parameters,Object [] arguments)+76 System.Reflection.MethodBase.Invoke (Object obj,Object [] parameters)+35 System.Web.UI。System.Web.UI.Web.UI.Sheer.ClientPage.OnLoad(EventArgs e)+337 System.Web.UI.Control.LoadRecursive()+116 System.Web.UI。 Page.ProcessRequestMain(布爾includeStagesBeforeAsyncPoint,布爾includeSta gesAfterAsyncPoint)2910
UPDATE: 我們已經有web.config中的條目改變,這就是爲什麼登錄正常工作:
<setting name=」Login.RememberLastLoggedInUserName」 value=」false」 />
是的,我應該提到我們已經做到了。 –