ASP.NET MVCアプリケーションで自分のホームページを取得しようとすると、この例外が発生します。フェデレーション認証と「暗号化操作中にエラーが発生しました」
[CryptographicException:エラーは暗号 動作中に発生した。】
System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 FUNC、バイト[]入力)246
System.IdentityModel .Services.MachineKeyTransform.Decode( エンコード[]バイト)191
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ApplyTransforms(バイト[] クッキー、ブールアウトバウンド)173
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken( XmlRe ADER リーダー、SecurityTokenResolver tokenResolver)756
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken(バイト[] トークン、SecurityTokenResolver tokenResolver)+100
System.IdentityModel.Services.SessionAuthenticationModule.ReadSessionTokenFromCookie(バイト[] 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ステップ、ブール& completedSynchronously)私は何かを理解して何から165
SessionAuthenticationModuleのクッキーに間違っています。クッキーをクリアすると(すでにここに記載されているようにFederated Authentication on Azure)、クッキーは機能します。私が望むのは、何が起こっているのか、例外をキャッチして問題を解決する方法を理解することです。
どのようにCookieを発行しますか? –
あなたのアプリはAzureにありますか? –
@WiktorZychla:以前のビルドのもので、ブラウザにキャッシュされていました。 – Dave