Unable to launch IIS Express Web server

对着背影说爱祢 提交于 2020-08-07 22:16:00

问题


Everytime I try to debug my asp.net website I get this error:

Unable to launch the IIS Express Web server.

Failed to register URL "http://localhost:50010/" for site "SociopackWebAPI" application "/". Error description: The process cannot access the file because it is being used by another process. (0x80070020)

In eventviewer I noticed this error in the log:

The worker process for app pool 'Clr4IntegratedAppPool', PID='13248', failed to initialize the http.sys communication when asked to start processing http requests and therefore will be considered ill by W3SVC and terminated. The data field contains the error number.

I assume this means my Clr4IntegratedAppPool does not have enough rights? How can I fix thi?


回答1:


I had exactly the same problem with VS2017 / IIS Express 10. Tried a few tips & tricks found at forums, but the only one that really fixed the bug definitively is the following:

  1. Close all Visual Studio instances and IIS Express (if it's running)
  2. Go to Windows' "Programs and Resources", find IIS Express in the list of installed programs, and "Uninstall" it
  3. Restart your computer, just be sure that all processes are closed
  4. Download IIS Express 10 standalone installer from Microsoft: https://www.microsoft.com/en-us/download/details.aspx?id=48264
  5. Install it, open Visual Studio, and it should work fine.



回答2:


If you cannot find your solution for this, try this:

  1. Enter Windows + R & type Regedit
  2. Go to the following path:

    Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP
    
  3. Change the value of name Start from 4 to 3.




回答3:


"The process cannot access the file because it is being used by another process" usually means that there is something else already listening on that port. Maybe you started the same application twice?



来源:https://stackoverflow.com/questions/45480722/unable-to-launch-iis-express-web-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!