Visual Studio 2015 - ASP.Net application won’t start until restarting Visual Studio

≯℡__Kan透↙ 提交于 2019-12-03 05:55:21

问题


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.

  • Is there a solution to this problem?
  • Do log files or something like this exist where I can find information about what is wrong?

I’m working with Visual Studio 2015 Update 1.


回答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.




回答2:


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.



来源:https://stackoverflow.com/questions/34220606/visual-studio-2015-asp-net-application-won-t-start-until-restarting-visual-stu

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