gpt4 book ai didi

asp.net - 联合身份验证和 "Error occurred during a cryptographic operation"

转载 作者:行者123 更新时间:2023-12-03 12:51:37 31 4
gpt4 key购买 nike

当我尝试在 ASP.NET MVC 应用程序上获取我的主页时出现此异常。

[CryptographicException: Error occurred during a cryptographic operation.]
System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] input) +246
System.IdentityModel.Services.MachineKeyTransform.Decode(Byte[] encoded) +191
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ApplyTransforms(Byte[] cookie, Boolean outbound) +173
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken(XmlReader reader, 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(Object sender, EventArgs eventArgs) +231
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165



据我了解,SessionAuthenticationModule 的 cookie 出现问题。如果您清除 cookie(如此处所述 Federated Authentication on Azure ),它会起作用。我想了解发生了什么,如何捕获异常并解决问题。

最佳答案

我遇到了同样的问题。
我刚刚清除了所有 浏览器的 cookie 缓存数据它得到了修复。

关于asp.net - 联合身份验证和 "Error occurred during a cryptographic operation",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15839196/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com