Visual Studio - How To Fix “Process With An ID Of xxxx Is Not Running

Background

 
When trying to run a web application or web API, there may be times when you get the below message,
 
Visual Studio - How To Fix “process With An ID Of xxxx Is Not Running 
 
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.
Visual Studio - How To Fix “process With An ID Of xxxx Is Not Running 
  • 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.
Visual Studio - How To Fix “process With An ID Of xxxx Is Not Running
 
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