Background
When trying to run a web application or web API, there may be times when you get the below message,
I found a much quicker fix for this issue than the other solutions that are available online.
Solution
Follow the below steps for a quick fix,
- Stop the application.
- Make sure no other asp.net / web api applications are running. If they are please stop them as well.
- Open run, by pressing Windows Key + R .
- Then type iisreset in the textbox and press ok.
- A command prompt window might open and do some background processing, wait for it to complete.
- Wait for the command prompt window to close automatically (usually happens quite quickly).
- Now go back to the web application and try to run the application, it should run.
Note
Only do this on local / dev machines, do not try this on the Server as it might impact any other running application.
Links
Other Solutions that are already available online,
- https://stackoverflow.com/questions/26424902/process-with-an-id-is-not-running-in-visual-studio-professional-2013-update
- https://stackoverflow.com/questions/55880502/visual-studio-2017-process-with-an-id-of-is-not-running-error
- https://www.codeproject.com/Tips/1029540/Solved-Process-With-An-Id-Of-Is-Not-Running