【问题标题】:Unable to launch the IIS express web server port 80 is in use无法启动 IIS Express Web 服务器 端口 80 正在使用中
【发布时间】:2016-01-25 21:20:00
【问题描述】:

我在 Visual Studio 2015 中有两个解决方案:CDN 和一个网站

CDN applicartionhost.configC:\xxxx\CCC\CCC\Dev\CCC\.vs\config

网站配置:

            <site name="CCC.Web" id="1" serverAutoStart="true">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="C:\XXXX\CCC\CCC\Dev\CCC\CCC.Web" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:80:www.trueq.com.co" />
            </bindings>
        </site>

网站 applicartionhost.config 在C:\xxxx\YYY\YYY\Dev\YYY\.vs\config

网站配置:

 <site name="YYY" id="1" serverAutoStart="true">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="C:\XXXX\YYY\YYY\Dev\YYY\YYY" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:80:tq.pastatic.com" />
            </bindings>
        </site>

当我运行一个解决方案时它运行良好,但当我尝试运行另一个时它显示错误:无法启动 iis express web 服务器端口 80 正在使用中。

我不知道该怎么办。

我尝试卸载并重新安装 IIS 10,删除两个 applicartionhost.config,更改端口,没有任何效果。

【问题讨论】:

  • 您是否已经检查过是否有任何其他进程已经占用了该端口? netstat -n -b 也许
  • 只是一个意外:Skype 在这台机器上运行吗?我认为 Skype 有时会阻塞端口 80。
  • 是的,已经检查了 Skype 端口。
  • 和进程系统 (id:4) 占用端口 80

标签: c# asp.net iis


【解决方案1】:

你不能让两个进程监听同一个 TCP 端口。

当你有两个解决方案时,你有两个 IIS 快速运行实例。

在(真正的)IIS中,你可以使用主机名切换到不同的站点,因为它只是一个进程监听。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-09-04
    • 2014-04-05
    • 1970-01-01
    • 1970-01-01
    • 2013-04-26
    相关资源
    最近更新 更多