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?
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:
"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?
If you cannot find your solution for this, try this, it work for me. Window + R -> type Regedit and go to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP chang the value of name "Start" from 4 to 3. Done.
User contributions licensed under CC BY-SA 3.0