Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to edit and continue in Visual Web Developer 2008 Express Edition and ASP.NET MVC?

I've enabled Enable Edit and Continue on the Web Properties page and it's also enabled in my configuration, yet Visual Web Developer 2008 Express Edition refuses to allow me to edit source files of an ASP.NET MVC project. I can edit the aspx file with no problem though.

Any ideas what's wrong or what's missing?

like image 576
pupeno Avatar asked May 20 '09 18:05

pupeno


People also ask

How do I turn off break mode in Visual Studio?

There is a free extension to resolve this issue: Disable No Source Available Tab available for from the VS Market Place. This small extension will prevent the tool window with title "No Source Available" from appearing in Visual Studio, and preserve the focus on the currently active tab.


4 Answers

If you are targeting x64 or Any CPU on a 64 bit machine you cannot use edit and continue. It only works when you are targeting x32.

I set my Platform target to x32 for the Debug configuration for this reason.

like image 100
Matt Spradley Avatar answered Sep 22 '22 05:09

Matt Spradley


My conclusion is that it just doesn't work.

like image 26
pupeno Avatar answered Sep 20 '22 05:09

pupeno


Remember after ticking "Enable Edit and Continue" in your project properties to Save your changes before building and testing your app. I made this mistake which cost me more time than I care to share!

enter image description here

like image 42
SausageFingers Avatar answered Sep 19 '22 05:09

SausageFingers


It works fine at last in Visual Studio 2010 (MVC 4), below are all required steps to do it.

I can change e.g. action code in controller (when application is "paused" or stopped at break point) and all changes are automatically used after "Continue" or in step by step debugging.

Tools > Options > Debuging > Edit and Continue

Enable Edit and Continue

Tools > Options > Debuging > General

Enable "Brake all..", disable "Require source files..."

Build > Configuration Manager...

Set platform x86 for all projects

In Solution Explorer right click on main (web) project name > Properties

Enable "Edit and continue" for web

Change build output path to \bin

Change build output path to "\bin"

Source: Changes are not allowed if the assembly has not been loaded

like image 24
Michał Powaga Avatar answered Sep 21 '22 05:09

Michał Powaga