If you're working with Visual Studio on recent Windows versions, such as Windows 10, you might stumble upon the following error when trying to open an ASP.NET Core or MVC solution:
Process with an ID #### is not running on Visual Studio 2015
If you look to the Visual Studio error log window panel, you should also see something like that:
1 |
The program '[3148] iisexpress.exe' has exited with code -1073741816 (0xc0000008) 'An invalid handle was specified'. |
This is clearly an IISExpress error. It's worth noting that the solution will still be launched in debug mode, but the web browser will be unable to connect to the application, giving the following permanent error:
Unable to launch the IIS Express Web server.
The start URL specified is not valid. https://localhost:#####/
The first thing you should try is to perform a full cleanup of the whole solution and then try to rebuild/debug it. If this preliminary task doesn't work for you, there are many workaround that might fix this issue: we suggest to try them one after another, stopping only when you manage to fix it.
- Delete the \Documents\IISExpress folder using the following console command:
rmdir /s /q "%userprofile%\Documents\IISExpress" - Delete the applicationhost.config file which is placed within the \.vs\Config\ folder in your Visual Studio project root folder.
- Close Visual Studio and re-start it with Administrative priviledges (right-click > Run as Administrator).
- Change the project's website random URL: within Visual Studio, right-click to the project node in Solution Explorer, then select Properties; navigate through the Web panel, then change the number in the Project Url textbox value.
- Add the _CSRUN_DISABLE_WORKAROUNDS Environment System variable with the value of 1 as shown in the following screenshot (thanks to Juan M. Elosegui for reporting this on this SO thread and for the image):
In case you manage to fix the issue, let us know which of the given workarounds worked for you by leaving a feedback in this post's comment section.
That's it for now: happy coding!
It helped me to solve the problem. Thank you!
I tried several options and it worked after following 1 to 4. The step number 5 doesn’t seem to have any kind of effect at least in my environment.
Hi,
I tried 1 and 2 but didnt succeed.
option 3 do the tricks.
Thanks!
Option 2 :(Delete the applicationhost.config file which is placed within the .vsConfig folder in your Visual Studio project root folder) worked for me. Thank you
Problem solved! Thank you :)
Options 1 – 4 worked in my case. Did not try option 5.
Options 1 – 4 worked for me. Did not try option 5. I tried to get my project to work for almost two days before I found your site. Thank you.
E.
Thank you very much. This is saved my time. Options 1 – 2 worked for me
Glad to help! Thank you for reading this :)
Awesome. Option 1 worked for me. Thankyou
Thanks!!! Saved my day!!! Options 1-2 worked for me…
Thank you so much. Helped a lot….
Thanks for the post. Options 1-2 worked for me…
1+2 worked. I have no idea if 2 would have worked alone.
The problem first shown up when I moved projects to a different folder. Tried to run the project 3 times, then I I just cleaned up the whole solution and rebuilt it. After that the project is debugging fine. That means: I did not deleted those files you are talking about nor IISExpress folder.
I just kept Visual Studio opened and rebuilt the solution
Added to the list as a preliminary task: thank you for sharing your experience!
it works thanks a lot :)
Only removing IIS Express folder worked for me !!!!!
none of them worked for me
That’s strange, these workarounds usually works. Let us know if you find an alternative workaround to fix your specific issue so that we can add your method to our post!
any steps from 1 to 5… did not work for me.. any other solution please let me know.
i am frustrated from this error (process with an id of ### is not running ).
i have tried all steps mentioned above but can not get rid of this error.
anyone please suggest me something.
thanks for this information.
step 4 worked for me.happy.
Option 1 and 5 did the job for me. thanks man
It worked for me. Thanks a lot
is work for me
Thank u so much
The second method helpedme to resolve the problem. It is working fine.
Thank you.