How to edit and continue in Visual Studio 2008 and ASP.Net MVC?

pupeno picture pupeno · Jul 6, 2009 · Viewed 11.5k times · Source

I'm trying to get edit-and-continue working with Visual Studio 2008 with an ASP.Net MVC project. I'm running 64-bit, so that adds to the problem.

In Configuration Manager, my active solution platform is x86 and all the projects are targeting Debug x86 as well.

In the project properties I have "Enable Edit and Continue" selected.

In Tools->Options...->Debugging->Edit and continue I have "Enable Edit and Continue" selected.

In Tools->Options...->Debugging->General I have "Break all processes when one project breaks" enabled.

As soon as I try to change some source code outside of a view/template'I get the message: Edit and continue: Changes are not allowed while code is running or if the option 'Break all processes when one project breaks' is dissabled. The option can be enabled in Tools, Options, Debugging.

Any ideas how to get it to work?

Answer

user117499 picture user117499 · Jul 10, 2009

Do you have Enable Optimizations checked? (Advanced Compile Options), I don't think you can have that checked...

Also: http://blogs.msdn.com/webdevelopertips/archive/2008/11/26/tip-29-did-you-know-how-to-enable-edit-and-continue-feature-for-web-application-projects.aspx