【发布时间】:2019-01-26 23:05:14
【问题描述】:
使用最新版本的 Visual Studio,当我开始调试我的应用程序时,我无法访问我在 applicationhost.config 文件中设置的所有 URL。这些在大约一周前还有效。
我的 applicationhost.config bindings 部分中有这个:
<bindings>
<binding protocol="http" bindingInformation="*:51415:localhost" />
<binding protocol="http" bindingInformation="*:51415:subdomain.localhost" />
<binding protocol="http" bindingInformation="*:51415:othersubdomain.localhost" />
<binding protocol="http" bindingInformation="*:51415:thirdsubdomain.localhost" />
<binding protocol="http" bindingInformation="*:80:pro.myPC.mydomain.biz" />
<binding protocol="http" bindingInformation="*:443:pro.myPC.mydomain.biz" />
<binding protocol="https" bindingInformation="*:44303:pro.myPC.mydomain.biz" />
<binding protocol="https" bindingInformation="*:44303:localhost" />
</bindings>
我只看到 IISExpress 中列出的一些:
http://subdomain.localhost:51415/
http://thirdsubdomain.localhost:51415/
https://pro.myPC.mydomain.biz:44303/
https://localhost:44370/
更新: 我删除了子域的绑定,http://localhost:51415 仍然不起作用。 IIS Express 系统托盘工具中仅保留 https url。
【问题讨论】:
-
“我只看到 IISExpress 中列出的一些”。你指的是 IIS Express 系统托盘应用程序吗?没有文档说明它在内部是如何工作的,所以我认为如果不对其进行逆向工程,这个问题就无法轻易回答。
-
是的。而且我无法导航到它们。这是以前工作的。希望我知道发生了什么变化。
-
我发现这出乎意料地适用于我的具体情况... ;P
标签: visual-studio iis-express custom-domain