微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Http在Visual Studio IIS Express下未运行

如何解决Http在Visual Studio IIS Express下未运行

我遇到一个奇怪的问题。我有一个ASP.Net Web API解决方案项目。解决方案已打开且运行完美。然后,由于挂起的Windows更新,系统自动重新启动。之后,当我启动该解决方案并运行Web API项目时,它仅在https上运行,我什至在IIS Express上的Show All Applications中也看不到http url。

enter image description here

enter image description here

在applicationhost.config中,它包含以下绑定:

<site name="BevahiorApp.API" id="2">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="D:\Projects\BevahiorApp.API\BevahiorApp.API" />
                </application>
                <bindings>
                    <binding protocol="http" bindinginformation="*:50145:localhost" />
                    <binding protocol="https" bindinginformation="*:44378:localhost" />
                </bindings>
            </site>

,然后在“网站”标签下的“项目”属性

enter image description here

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。