Pra*_*abu 3 identityserver4 asp.net-core-2.2
我试图将带有 asp.net core 2.2 的 Identity Server 4 应用程序部署到本地计算机(Windows 10)中的 IIS 中,并收到错误“启动应用程序时出错。获取错误信息”启动应用程序时出错. UnauthorizedAccessException:拒绝访问路径“c:\windows\system32\inetsrv\tempkey.rsa”。”
它在调试模式下工作,但在 IIS 中部署时会超过。
身份服务器 4 版本 - 2.3.2
Asp.net 核心 2.2
IIS 10.0.16
任何人都可以帮助解决这个问题吗?
小智 6
我有同样的错误,它来自对AddDeveloperSigningCredential()内部配置服务的调用。当我将其更改为 时AddDeveloperSigningCredential( persistKey: false ),错误消失了。
这是整个函数调用块
public void ConfigureServices( IServiceCollection services )
{
services.AddIdentityServer()
.AddDeveloperSigningCredential( persistKey:false)
.AddInMemoryApiResources( Config.GetApiResources() )
.AddInMemoryClients( Config.GetClients() );
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3786 次 |
| 最近记录: |