Process ID "xxxx" is not running in Visual Studio (2013 to 2017 ~)
- Open Visual Studio as Administrator
- Right click your project and click
Unload Project
- Right click your project again and click
Edit PROJECT_NAME.csproj
-
Find the code below and delete it
<DevelopmentServerPort>63366</DevelopmentServerPort> <DevelopmentServerVPath>/</DevelopmentServerVPath> <IISUrl>http://localhost:63366/</IISUrl>
-
Save and close the file
- Right click your project and reload it.
- See if it works
source to share
I faced the same problem and found a great way to deal with this problem as follows
1. Open your project file:
* .csproj
2. Try to find the lines shown below (by finding "DevelopmentServerPort" in your project file).
<DevelopmentServerPort>62140</DevelopmentServerPort> <DevelopmentServerVPath></DevelopmentServerVPath> <IISUrl>http://localhost:62116/</IISUrl>
3. Once found, remove the following tags from your project file:
4. Save and close the file. If your project is open, you may be prompted to reload the project.
full link url
source to share
I had this problem and the solutions found on the internet did not help. Here's what worked for me:
When the problem occurs ...
- Change the startup project to a different project in your solution.
- Run this project once.
- Change the startup project to the original project.
In my case, an error occurred because the selected port was already in use. This means that you need to select a new port. For some reason, the chosen port is sometimes taken and sometimes free.
To select a new port, right click on your project, then Properties
. On the tab, Web
change the port in the file Project URL
.
You should avoid using port 0 to 1024. Choose a funky number such as 12321 or 23432, which is high enough to be easily remembered.
source to share
I tried the first error and it didn't work for me. However, what worked for me was to delete the hidden ".vs" folder that is at the root of the solution. You will have to close visual studio, delete the folder, reopen the solution, and Visual Studio will create a new "correct" folder instance.
source to share
For me, using Visual Studio 2017, the tags mentioned in ali abid's answer were located in the csproj.user file.
However, removing these tags did not solve my problem. For me, I set the virtual directory in the project properties with a low (9500) port number. I think some other process decided to use this port and was blocking IIS Express from starting.
The solution was to edit the project properties, update the Web -> Project Url to use the new port, and create a virtual directory.
source to share