The Wayback Machine - https://web.archive.org/web/20220127080803/https://github.com/dotnet/aspnetcore/issues/39807
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error unprotecting the session cookie #39807

Open
1 task done
bbhxwl opened this issue Jan 27, 2022 · 0 comments
Open
1 task done

Error unprotecting the session cookie #39807

bbhxwl opened this issue Jan 27, 2022 · 0 comments

Comments

@bbhxwl
Copy link

@bbhxwl bbhxwl commented Jan 27, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

How can I avoid restarting the program? Old users always prompt this error when visiting the website?

�[40m�[1m�[33mwarn�[39m�[22m�[49m: Microsoft.AspNetCore.Session.SessionMiddleware[7]
Error unprotecting the session cookie.
System.Security.Cryptography.CryptographicException: The key {5a28e1bf-f23b-40a4-a491-946d30aada50} was not found in the key ring.
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)
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
at Microsoft.AspNetCore.Session.CookieProtection.Unprotect(IDataProtector protector, String protectedText, ILogger logger)

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant