Search code examples
blazorasp.net-core-3.1data-protection

Error The key was not found in the key ring + Blazor(Wasm) + DataProtection


I configured the blazor (wasm) to use the DataProtection with the PersistKeysToFileSystem method

PersistKeysToFileSystem

So I start the server and everything works fine, except for two things:

  1. The file is not saved in the directory

enter image description here

  1. When I restart the server the key restarts the following error happens:

enter image description here


Solution

  • would be surprised if a C:\temp is allowed by browser sandbox on client or even on server