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

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

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

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


        
27条回答
  •  萌比男神i
    2021-01-30 01:05

    From https://www.davidsalter.co.uk/unable-to-launch-the-iis-express-web-server-error-0x80070020/

    Error code 0x80070020 means ERROR_SHARING_VIOLATION, which in the case of IIS Express (or IIS) means that the port that it is attempting to listen on is being used by another process.

    Use the netstat command to find out which application is using the port.

    netstat -ao | findstr 
    

    The a parameter tells netstat to display all connections and listening ports.

    The o parameter tells netstat to display the process ID associated with the connection.

    Running the above netstat command will produce output such as:

    C:\>netstat -ao | findstr 4026
    TCP    12.0.0.1:4026        cs-pc:4026         LISTENING       9544
    

    The last number displayed (9544 here) is the process ID.

提交回复
热议问题