偶而我在验证Azure广告时有问题。我得到了显示在页面底部的错误。
我设置了以下内容
IdentityModelEventSource.ShowPII = true;
查看日志,以找出我缺少的配置。我在哪里能看到原木?
我在我的机器上本地运行WebAPI,URL是https://localhost:16135/weatherforecast。我通过POSTMAN获得令牌,这是成功的,但是使用该令牌执行WebAPI失败了。这就是我所看到的错误:
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
---> System.IO.IOException: IDX20804: Unable to retrieve document from: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
---> System.Net.Http.HttpRequestException: No such host is known.
---> System.Net.Sockets.SocketException (11001): No such host is known.发布于 2020-05-24 16:32:28
错误上写着“已知中没有这样的主机”
如果您正在从本地计算机外部打电话到WebAPI,请执行以下操作。那么它就找不到本地主机了。
尝试在uri中使用您的计算机的名称。
https://stackoverflow.com/questions/61988545
复制相似问题