1

使用最新版本的 Visual Studio,当我开始调试我的应用程序时,我无法访问我在applicationhost.config文件中设置的所有 URL。这些工作直到大约一周前。

我的 applicationhost.configbindings部分中有这个:

<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仍然不起作用。只有 https url 保留在 IIS Express 系统托盘工具中。

4

1 回答 1

2

出于某种原因,我需要以管理员身份启动 Visual Studio。我已将快捷方式设置为始终以管理员身份启动,但显然在更新后,快捷方式被重置。

以管理员身份开始,这是可行的。

于 2018-08-21T17:00:10.513 回答