I attempted to run my web service through visual studio. I faced an issue like :
---------------------------
Microsoft Visual Studio
---------------------------
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.