Why can't I edit an ASP.NET web application at runtime?

Why are code pages for an ASP.NET web application blocked at run time? I have older projects (possibly defined as “websites” instead of “web applications”) where I can edit the code behind, refresh the browser and see my changes. Using a web application, I need to constantly close and open the browser if I want to see my changes live. Is there a parameter or something that I am missing to allow me to edit at runtime and without restarting the debugging session?

+3
source share
3 answers

You can enable Edit and Continue in the project properties. Right-click the project in Solution Explorer, select the Web tab, and select the Enable editing and continue check box.

Now you can edit your sources, but you need to pause the debugger to do this.

+7
source

When using IIS as the development server in Visual Studio for ASP.NET, it is not currently available to Edit and Continue.

Pay attention to the blog entry , however this shows that it is possible for the Visual Studio 2005 Web Application Project Project type. It requires the use of Visual Studio Development Server (Cassini) during development instead of local IIS (see Project Properties Window).

+3

, - dll, DLL ,

ctrl-F5 F5, ( IIS), ...

, , - , , . , , , unit test. IMHO , .

+2

All Articles