Visual studio 2017 process with an id of is not running error

纵饮孤独 提交于 2020-01-25 00:38:07

问题


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:


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.




回答2:


Do the following steps :-

  1. Close all the instances of VS in your PC.
  2. Open folder which contains solution file for current project and delete the hidden .vs folder.
  3. Again open the Visual Studio.
  4. Press F5 and IIS Express should load as normal, allowing you to debug.

It works for me. Thanks!




回答3:


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.



来源:https://stackoverflow.com/questions/55880502/visual-studio-2017-process-with-an-id-of-is-not-running-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!