简体   繁体   English

无法启动IIS Express Web服务器端口80

[英]Unable to launch the IIS express web server port 80 is in use

I have two Solutions in visual studio 2015: CDN and a website . 我在Visual Studio 2015中有两个解决方案: CDN和一个网站

CDN applicartionhost.config are in C:\\xxxx\\CCC\\CCC\\Dev\\CCC\\.vs\\config CDN applicartionhost.config位于C:\\xxxx\\CCC\\CCC\\Dev\\CCC\\.vs\\config

Site 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>

Website applicartionhost.config are in C:\\xxxx\\YYY\\YYY\\Dev\\YYY\\.vs\\config 网站applicartionhost.config位于C:\\xxxx\\YYY\\YYY\\Dev\\YYY\\.vs\\config

Site 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>

When I run one solution it runs fine, but when I try to run the other it shows an error: Unable to launch the iis express web server port 80 is in use. 当我运行一个解决方案时,它运行良好,但是当我尝试运行其他解决方案时,它显示错误:无法启动iis express Web服务器端口80。

I don't know what to do. 我不知道该怎么办。

I tried uninstall and reinstall IIS 10, delete both applicartionhost.config, change ports, nothing works. 我尝试卸载并重新安装IIS 10,删除了两个applicartionhost.config,更改了端口,没有任何效果。

You cannot have two processes listening at the same TCP port. 您不能有两个进程在同一个TCP端口上侦听。

When you two solutions, you have two instances of IIS express running. 当您使用两个解决方案时,将有两个IIS Express实例在运行。

In (the real) IIS, you can use the hostname to switch to different sites, because it is only one process listening. 在(真实的)IIS中,您可以使用主机名切换到不同的站点,因为它只是一个进程在监听。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM