How to Get Rid of Error “Process with an Id of XXXX is not running” in Visual Studio

As I tried to make some changes in an older project, I ended up with this error message whenever I tried to start the web application:

The process Id changed with every run, so it was a challenge to find a solution.

As it turned out, this problem can happen when you move your whole project folder to another machine. Somehow, the settings inside the .vs folder lead to this strange error message. The simplest way to get rid of this error is to remove the .vs folder:

  1. close Visual Studio
  2. open the folder in which your solution is
  3. remove the .vs folder (it may be hidden)
  4. restart Visual Studio
  5. hit F5 to start IIS Express and debug your application

Without any other changes, your solution should work again.

5 thoughts on “How to Get Rid of Error “Process with an Id of XXXX is not running” in Visual Studio”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.