19

ASP.NET MVC アプリケーションでホームページを取得しようとすると、この例外が発生しました。

[CryptographicException: 暗号操作中にエラーが発生しました。]
System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] 入力) +246
System.IdentityModel.Services.MachineKeyTransform.Decode(Byte[] エンコード) +191
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ApplyTransforms(Byte[] Cookie、ブール送信) +173
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken(XmlReader リーダー、SecurityTokenResolver tokenResolver) +756
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken( Byte[] token, SecurityTokenResolver tokenResolver) +100
System.IdentityModel.Services.SessionAuthenticationModule.ReadSessionTokenFromCookie(Byte[] sessionCookie) +1164
System.IdentityModel.Services.SessionAuthenticationModule.TryReadSessionTokenFromCookie(SessionSecurityToken& sessionToken) +287
System.IdentityModel.Services.SessionAuthenticationModule.OnAuthenticateRequest(オブジェクト送信者、EventArgs eventArgs) +231
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

私が理解していることから、SessionAuthenticationModuleのCookieで何か問題が発生しています。Cookie をクリアすると (既にここで述べたように、Azure での Federated Authentication で) 機能します。私が望むのは、何が起こっているのか、例外をキャッチして問題を修正する方法を理解することです。

4

2 に答える 2

4

私は同じ問題に直面しました。ブラウザの Cookieキャッシュ データをすべてクリアしたところ、修正されました。

于 2016-07-19T14:39:52.400 に答える