【问题标题】:URL listed in applicationhost.config doesn't start in iis expressapplicationhost.config 中列出的 URL 不在 iis express 中启动
【发布时间】: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


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 2014-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-04
    相关资源
    最近更新 更多