“无法启动IIS Express Web服务器."在Visual Studio中 [英] "Unable to launch the IIS Express Web server." in Visual Studio
问题描述
我试图通过Visual Studio运行我的Web服务.我遇到了类似的问题:
---------------------------
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 being
used by another process. (0x80070020)
---------------------------
OK
---------------------------
我看到任务管理器,发现系统使用PID 4,其描述为NT Kernel & System.
因此,我试图停止http service
.
所有依赖项服务均已停止.但是我在停止http服务之类的过程中遇到了一个问题
The service is starting or stopping. Please try again later.
因此,我尝试手动停止并启动该服务.但是结束进程被禁用. 如果有人可以帮助解决此问题,这将是有帮助的
来自 I saw the task manager and found that PID 4 is used by System and its Description is 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 Use the The The Running the above netstat command will produce output such as: The last number displayed (9544 here) is the process ID. 这篇关于“无法启动IIS Express Web服务器."在Visual Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!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.
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.netstat
command to find out which application is using the port.netstat -ao | findstr <port_number_to_search_for>
a
parameter tells netstat to display all connections and listening ports.o
parameter tells netstat to display the process ID associated with the connection.C:\>netstat -ao | findstr 4026
TCP 12.0.0.1:4026 cs-pc:4026 LISTENING 9544