小编Ray*_*yan的帖子

System.InvalidOperationException:IDX20803:无法从 .NET 5 的“System.String”获取配置

我一直在实现 IdentityServer4 来为我的 React 应用程序提供授权。我在本地开发环境中运行此功能,但在部署到 Windows Server 2016 中的 IIS 后遇到问题。我能够通过 /connect/token 端点生成访问令牌,但是当我尝试使用以下命令访问受保护的 API 时令牌我得到以下异常:

System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'.
 ---> System.IO.IOException: IDX20804: Unable to retrieve document from: 'System.String'.
 ---> System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (dev-drydata-auth.universal-compliance.com:443)
 ---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a …
Run Code Online (Sandbox Code Playgroud)

jwt asp.net-web-api identityserver4 .net-5

20
推荐指数
2
解决办法
7万
查看次数

标签 统计

.net-5 ×1

asp.net-web-api ×1

identityserver4 ×1

jwt ×1