错误代码0x80070020表示ERROR_SHARING_VIOLATION,在IIS Express(或IIS)的情况下,意味着它正在尝试侦听的端口正在由另一个进程使用.使用netstat命令来找出哪个应用程序正在使用该端口.netstat -ao | findstr <port_number_to_search_for> a参数告诉netstat显示所有连接和侦听端口. o参数告诉netstat显示与连接关联的进程ID.运行上述netstat命令将产生如下输出:C:\>netstat -ao | findstr 4026TCP 12.0.0.1:4026 cs-pc:4026 LISTENING 9544最后显示的数字(此处为9954)是进程ID.I attempted to run my web service through visual studio. I faced an issue like :---------------------------Microsoft Visual Studio---------------------------Unable to launch the IIS Express Web server.Failed to register URL "http://localhost:63591/" for site "xxxxxx" application"/". Error description: The process cannot access the file because it is beingused by another process. (0x80070020)---------------------------OK---------------------------I saw the task manager and found that PID 4 is used by System and its Description is NT Kernel & System.So I tried to stop the http service.All dependency services stopped. But I am facing an issue in stopping http service likeThe service is starting or stopping. Please try again later.So, I tried to stop and start the service manually. But the End process is disabled.It will be helpful if anyone could help with this issue 解决方案 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 <port_number_to_search_for>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 4026TCP 12.0.0.1:4026 cs-pc:4026 LISTENING 9544The last number displayed (9544 here) is the process ID. 这篇关于“无法启动IIS Express Web服务器."在Visual Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
06-09 19:30