我在使用AWSSDK v3.5.1.58时遇到以下异常:
The encrypted store is not available. This may be due to use of a non-Windows operating system or Windows Nano Server, or the current user account may not have its profile loaded.
这是由于应用程序无法使用crypt32.dll。这很奇怪,因为这个文件是在Server2019和IIS10上运行的System32格式的,没有关于这个的真正文档。我使用的是ADFS身份验证。FederatedAWSCredentials
这在本地开发上工作得很好,但在部署后就不行了。
生成错误的文件可以在这里找到:https://github.com/aws/aws-sdk-net/blob/133eddb00a3fbd2ab395e01c3d84ac9fe1ff38b2/sdk/src/Core/Amazon.Util/Internal/SettingsManager.cs,第213行
发布于 2021-01-12 19:12:45
所以问题出在IIS中。
我以需要进行身份验证的用户身份运行应用程序池,这是正确的。但您还需要设置以下内容:
Application Pool -> Advanced Settings -> Process Model -> Load User Profile = True
https://stackoverflow.com/questions/65680545
复制相似问题