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

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

我将 blazor (wasm) 配置为通过 PersistKeysToFileSystem 方法使用 DataProtection

所以我启动了服务器,一切正常,除了两件事:

  1. 文件未保存在目录中

  1. 当我重新启动服务器时,密钥重新启动时发生以下错误:

如果客户端甚至服务器上的浏览器沙箱允许 C:\temp 会令人惊讶