Sometimes when I try to start a ASP.Net application (debugging) the application will not start. Visual studio looks like the application is running, the status bar changes its color to orange. A Browser opens and is loading “forever”. IIS Express is running and the site gets displayed in the context menu of the IIS try application. I do not get any exception; the application just won’t start.
I tried to stop debugging and manually stopped IIS Express and started debugging again, but it didn’t work. The only thing which works is closing Visual Studio and open it again. Then I can start the application n times until I get the same problem again.
The application is not the problem, I never had this problem debugging the same application with Visual Studio 2013.
I’m working with Visual Studio 2015 Update 1.
Solution/Workaround:
I still have the same problem and I can’t find a way to solve it.
But the following script works as a workaround:
taskkill /f /im iisexpress.exe
It kills iisexpress which seams to cause the problem.
tasklist /fi "imagename eq iisexpress.exe" |find ":" > nul
if errorlevel 1 taskkill /f /im "iisexpress.exe"
This command will solve the first debug problem. Kills iisexpress.exe, when it's executed. Not every time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With