when I open a project in VS and Press F5 I get the error of "Process with an id of "xxxx" is not running" but if I keep Visual studio open and wait for about 30 minutes and then press F5 it works fine!
Does anyone knows why?
when I open a project in VS and Press F5 I get the error of "Process with an id of "xxxx" is not running" but if I keep Visual studio open and wait for about 30 minutes and then press F5 it works fine!
Does anyone knows why?
1.Run Visual Studio as an administrator
2.Open your project file(In Solution Explorer, right-click project=>unload project=>edit x.xxproj)
Delete script below:
<DevelopmentServerPort>63366</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:63366/</IISUrl>
Save the changes and reload the project. F5 to check if it helps.
Please check this similar issue.
Do the following steps :-
It works for me. Thanks!
I resolved the issue by turning OneDrive back on, seriously. I must have free up some space on my PC and left OneDrive off. When VS ran it needed some files to be available to start up IIS.
I also cleaned .vs and bin/obj and we are back running
we need a lot more information.
Are you trying to build a program with an IIS Instance? Did you delete any DLLs? Does it work on other machines?
Things to try:
Try a full clean and rebuild. That is, clean the solution, git new, rebuild all. Fix any errors and warnings, then launch with F5.
Run Visual Studio as an admin. Start > Visual Studio > right click > Run as Administrator.
In your csproj file, delete the following lines:
<DevelopmentServerPort>62140</DevelopmentServerPort>
<DevelopmentServerVPath></DevelopmentServerVPath>
<IISUrl>http://localhost:62116/</IISUrl>
Save, then reload.
Try following the solutions from this Stack Overflow:
Process with an ID #### is not running in visual studio professional 2013 update 3
Delete the IIS folder with:
rmdir /s /q "%userprofile%\Documents\IISExpress
Delete the .vs\Config folder in your Visual Studio instance.
Relaunch Visual Studio as Administrator, so they can be rebuilt.
You should now be up and running.
I tried all the solutions from here and from the Internet. Eventually I uninstalled IIS Express and reinstalled it, and it worked. (tried on VS 2015)
I've done th esame as Sunny_sid but I just renamed .vs with old_vs, just in case. Restart VS right after and project runs !
I was getting the same error today in my Visual Studio 2019
. The easy fix is to kill the process that is running in the port you are trying to use.
To fix this, here are the steps I have done.
Open the PowerShell
and type the preceding command
Get-Process -Id (Get-NetTCPConnection -LocalPort 1068).OwningProcess
Please remember to change the port number. From the result, you can see that you have an ongoing process with Id 21276. You can also get this information from your IISEXPRESS
too, from the pop-up message you get when the error occurs.
Task Manager and then click on the
Details` tab, find the processEnd Task
PowerShell
by running taskkill /F /PID pid_number
or taskkill /IM "process name" /F
In my case, the error was caused by the fact that the project was targeting .NET5 but my other workstation only has .NET6. I changed the version number in the csproj file. I assume that installing .NET5 in this environment would have worked as well.
Would think the error message when I attempt to run the project would have been clearer. It was simple in the end.