今天在查看网站日志的,看到警报:
Using an in-memory repository. Keys will not be persisted to storage.Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.
大概意思是:
使用内存存储库。密钥将不会持久化到存储。用户配置文件和HKLM注册表均不可用。使用临时密钥存储库。应用程序退出时,受保护的数据将不可用。
虽然是警告,但看着总是不舒服.要去掉也很简单,只需去iis中对应的应用程序池修改[加载用户配置(Load User Profile)]修改为true即可.如图
以上就是【C#net core报Keys will not be persisted to storage】的全部内容了,欢迎留言评论进行交流!