IIS Express Immediately shutting-down running site after stopping web application

前端 未结 5 1654
余生分开走
余生分开走 2020-11-29 18:10

I\'m using visual studio 2012 in the first days when I want to stop application in IDE, application was still running on IIS Express, I could browse and work with running ap

5条回答
  •  天命终不由人
    2020-11-29 18:21

    In VS2010 and VS2012, the edit and continue option is disabled by default when creating a new web application project. In VS2013 it is turned on by default.

    You can find this option on the Web tab in the web project’s properties window.

    edit and continue option vs2013

    With “Enable Edit and Continue” on, the VS debugger starts your web application in IIS Express. When you stop debugging, IIS Express is closed too. With this behavior, you will see the IIS Express system tray shows up during debugging and gone after debugging. This behavior is the same as in VS2012 when the Enable Edit and Continue option is turned on.

    If you don’t need "Edit and Continue" functionality during development and would like IIS Express to stay after a debugging session, you can simply turn the Enable Edit and Continue option off.

    If you want to use "Edit and Continue" or you are developing an Asp.net 5 site (ASP.NET 5 projects don't have an Edit and Continue checkbox in project properties) you have to use the "Detech all" command to stop debugging.

    The debugger will detach from the iis process without closing it.

    Clearly "Edit and Continue" feature will not work until you start debugging again.

提交回复
热议问题