“Unable to launch the IIS Express Web server.” in Visual Studio

前端 未结 27 1546
清酒与你
清酒与你 2021-01-30 00:44

I attempted to run my web service through visual studio. I faced an issue like :

---------------------------
Microsoft Visual Studio
---------------------------
         


        
27条回答
  •  借酒劲吻你
    2021-01-30 01:00

    I had this problem when upgrading an MVC project. I copied over the newer-MVC .csproj over my existing .csproj file then worked back to a fully working Project. What I failed to consider is the existing port number in the old .csproj. The new project had a new port number, yet shared the Project/Assembly Name. That was enough to make IIS Express lose its mind and throw this exception.

    Just digging the old port number out of git and changing the IIS Express URL to include it in Project Settings was enough to fix it.

提交回复
热议问题