无法启动 IIS Express Web 服务器

启动webapi应用程序:

提示错误:

---------------------------
Microsoft Visual Studio
---------------------------
无法启动 IIS Express Web 服务器。

来自 IIS Express 的输出:
Failed to register URL "https://localhost:44311/" for site "QZOA.WebApi" application "/". Error description: 当文件已存在时,无法创建该文件。 (0x800700b7)


---------------------------
确定
---------------------------

解决方案:

找到项目文件夹下/.vs/项目名称/config/applicationhost.config文件:

修改

<binding protocol="http" bindingInformation="*:44311:localhost" />
<binding protocol="https" bindingInformation="*:44312:localhost" />

http和https端口为不一致解决问题

猜你喜欢

转载自www.cnblogs.com/6654-cui/p/12747222.html