I'm running my web app in IIS. Based on this documentation, "keys are persisted to the HKLM registry in a special registry key that is ACLed only to the worker process account. Keys are encrypted at rest using DPAPI."
It seems like the Antiforgery system needs to decrypt the .AspNetCore.Antiforgery cookie, but I get the error that the key was not found in the key ring.
I have not configured any data protection whatsoever, so it should all be using default settings. Any ideas as to why I'm getting this error and how to fix it?
Inner Exception Message: The key {c13d08a2-b1f6-4c61-ab1d-d19af63e4366} was not found in the key ring. Inner Stack trace:
Exception Message: The antiforgery token could not be decrypted. Stack trace:
at Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken) at Microsoft.AspNetCore.Antiforgery.Internal.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext)