Process with an ID #### is not running in visual s

2019-01-10 04:18发布

I am trying to run any program on visual studio 2013 update 3 and I get the following alert box :

Process with an ID #### is not running . // every time there is different ID number showing

and in the error windows I get this error msg:

The program '[3148] iisexpress.exe' has exited with code -1073741816 (0xc0000008) 'An invalid handle was specified'.

Sometimes it runs and in the browser i get the following message : The webpage is not available.

I have looked around and try almost everything and I stil cannot fix the problem.

Please help anyone

30条回答
姐就是有狂的资本
2楼-- · 2019-01-10 05:00

I also had the same problem, doing the above didn't work for me. What my error turned out to be was twofold.

  1. I had Opera as my default browser and it couldn't attach to that.
  2. I had multiple startup projects so it wouldn't let me switch to IE until I change the default startup project back to just the MVC shell.

I set that project specifically as the startup, then I switched it back to launching IE and it started debugging again.

Hope that helps

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-01-10 05:00

I had the same problem, and what needed to be done was setup IIS Express properly. I right clicked on my project -- Properties -- Web (tab) and on Servers: Project URL, was already pre-populated and I clicked the button "Create Virtual Directory". I had just reinstalled (refreshed) windows and the IIS was not setup b/c it was new.

Hope this helps.

查看更多
迷人小祖宗
4楼-- · 2019-01-10 05:01

Close your instance of Visual studio. Start it again in Administration mode. "Run as Admin"

查看更多
We Are One
5楼-- · 2019-01-10 05:01

Running as administrator didn't seem to make a difference when I got this.

  • Make sure all iisexpress.exe processes had been closed
  • Edit <path_to_your_solution>\Solution\.vs\config\applicationhost.config
  • Change the site name.

    <site name="MySite" id="1" serverAutoStart="true">

    to :

    <site name="MySite2" id="1" serverAutoStart="true">

  • That fixed it for me
查看更多
家丑人穷心不美
6楼-- · 2019-01-10 05:02

Same error Process with an ID #### is not running using visual studio 2015 RC.

Only go rid of the message after repair IIS 10 in Control Panel - Programs and Features

Renato

查看更多
虎瘦雄心在
7楼-- · 2019-01-10 05:02

The following steps fix the problem for Visual Studio 2015 and Visual Studio 2017:

  • Close VS.
  • Navigate to the folder of the solution and delete the hidden .vs folder.
  • Restart VS.
  • Hit F5 and IIS Express should load as normal, allowing you to debug.

Note: Based on my experience and others in the comments, this problem seems to be caused by moving a project between workstations, environments, or versions of Visual Studio. There must be some environment specific information contained in the .vs folder.

查看更多
登录 后发表回答