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

前端 未结 27 1578
清酒与你
清酒与你 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:06

    If netstat doesn't show anything already using the port

    netstat -ano | findstr

    The port might be excluded, try this command to see if the range is blocked by something else:

    netsh interface ipv4 show excludedportrange protocol=tcp

    You can try to unblock the range from the start port for a number of ports (need Command Prompt with Administrator):

    netsh int ip delete excludedportrange protocol=tcp numberofports= startport=

    For me I couldn't unblock these, I just got "Access is denied", so I ended up having to pick another port for my site.

提交回复
热议问题