IIS Express多个站点出现

时间:2018-08-08 14:41:38

标签: asp.net-mvc iis visual-studio-2017 iis-express

我似乎在我的解决方案.vs文件夹内的applicationhost.config文件中定义了多个站点。

网站就是这样

<site name="WebUI(2)" id="4">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="C:\...\WebUI" />
                </application>
                <bindings>
                    <binding protocol="http" bindingInformation="*:1234:localhost" />
                    <binding protocol="https" bindingInformation="*:44359:localhost" />
                    <binding protocol="https" bindingInformation="*:44359:local.someDomain.co.uk" />
                </bindings>
            </site>

<site name="WebUI(3)" id="5">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="C:\...\WebUI" />
                </application>
                <bindings>
                    <binding protocol="http" bindingInformation="*:1234:localhost" />
                    <binding protocol="https" bindingInformation="*:44359:localhost" />
                    <binding protocol="https" bindingInformation="*:44359:local.someDomain.co.uk" />
                </bindings>
            </site>

<site name="WebUI(4)" id="6">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="C:\...\WebUI" />
                </application>
                <bindings>
                    <binding protocol="http" bindingInformation="*:1234:localhost" />
                    <binding protocol="https" bindingInformation="*:44359:localhost" />
                    <binding protocol="https" bindingInformation="*:44359:local.someDomain.co.uk" />
                </bindings>
            </site>

IIS express似乎正在运行MySite(3),但是这些都是同一站点的所有副本,并且名称(3)看起来确实很丑。

如果我只是从配置文件中删除WebUI(3),则IIS拒绝启动,Visual Studio会抛出一个错误消息:

The process with id:<PID here> is not running.

我不确定该如何清理。我曾尝试搜索互联网,但似乎没有任何解决办法。

0 个答案:

没有答案