1

我正在尝试将 Identity Server 3 作为 IIS 10 中的单独应用程序托管。我添加了一个具有虚拟路径“/identity”的应用程序并将其指向我的调试目录。当我尝试浏览“ http://localhost/identity/.well-known/openid-configuration ”时,我得到“HTTP Error 404.0 - Not Found”。调试目录中的项目作为 Visual Studio 2015 下的独立服务器运行得非常好。我已经没有想法了。

顺便说一句,我已经退出 SSL 并暂时关闭了 https,以减少潜在问题。

身份服务器日志:

w3wp.exe Warning: 0 : 2016-10-04 13:44:23.940 +01:00 [Warning] AuthorizationCodeStore not configured - falling back to InMemory
w3wp.exe Warning: 0 : 2016-10-04 13:44:23.950 +01:00 [Warning] TokenHandleStore not configured - falling back to InMemory
w3wp.exe Warning: 0 : 2016-10-04 13:44:23.952 +01:00 [Warning] ConsentStore not configured - falling back to InMemory
w3wp.exe Warning: 0 : 2016-10-04 13:44:23.952 +01:00 [Warning] RefreshTokenStore not configured - falling back to InMemory
w3wp.exe Information: 0 : 2016-10-04 13:44:24.346 +01:00 [Information] {
  "Category": "Information",
  "Name": "Signing certificate validation success",
  "EventType": "Information",
  "Id": 4012,
  "Details": {
    "SigningCertificateName": "CN=identityServer",
    "SigningCertificateExpiration": "2019-12-31T23:00:00+00:00"
  },
  "Context": {
    "TimeStamp": "2016-10-04T12:44:24.2176795+00:00",
    "ProcessId": 3888,
    "MachineName": "NAME_CHANGED"
  }
}   

IIS 日志:

2016-10-04 13:04:42 ::1 GET /identity/.well-known/openid-configuration - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/51.0.2704.79+Safari/537.36+Edge/14.14393 - 404 0 2 0

任何帮助,将不胜感激。顺便说一句,这是一台新机器,所以我从头开始安装 IIS——这总是给我带来无穷无尽的问题。

4

1 回答 1

0

我找到的解决方案是将 Identity Server 3 部署在网站的根目录(在我的情况下为默认网站),而不是在应用程序中。

于 2016-10-05T14:28:55.797 回答