c# The key {xxx} was not found in the key ring

2022/9/9 1:24:17

本文主要是介绍c# The key {xxx} was not found in the key ring,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

404 (),      An exception was thrown while deserializing the token.,Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The antiforgery token could not be decrypted. ---> System.Security.Cryptography.CryptographicException: The key {xxx} was not found in the key ring.,fail: Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgery[7],   at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status),   at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.DangerousUnprotect(Byte[] protectedData, Boolean ignoreRevocationErrors, Boolean& requiresMigration, Boolean& wasRevoked),Application started. Press Ctrl+C to shut down.

参考:Error unprotecting the session cookie.The key {...} was not found in the key ring. - 走看看 (zoukankan.com)

 

解决方式贴出来:把浏览器关闭再打开,就可以了。



这篇关于c# The key {xxx} was not found in the key ring的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程