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

6

6

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?

Laird answered 20/5, 2009 at 18:41 Comment(1)
Now I'm getting another message: Changes are not allowed if the assembly has not been loaded.Laird
L
2

My conclusion is that it just doesn't work.

Laird answered 24/8, 2009 at 8:41 Comment(0)
N
2

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.

Nonprofit answered 25/5, 2009 at 15:35 Comment(1)
Interesting point. When I was having the trouble initially I was in a fully 32bit system, so I suppose I was targeting 32bit; but now I'm on 64bit so I'm going to check it out. Thanks for the pointer.Laird
L
2

My conclusion is that it just doesn't work.

Laird answered 24/8, 2009 at 8:41 Comment(0)
S
2

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

Subantarctic answered 18/1, 2012 at 14:9 Comment(2)
thanks. Helped a lot was wasting alot of time trying to sort this.Caton
I definitely had this checked and now it is not... how does this happen.. I know I didn't uncheck it! :<Swellhead
Z
1

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

Zareba answered 12/9, 2013 at 19:20 Comment(1)
+1 for the in-depth answer with screen shots, even though it didn't work for me... ;o)Swinge
A
0

You have to enable this on two places. See this blog post about Edit and continue for Web Application Projects (WAP)

Apologetics answered 27/5, 2009 at 9:37 Comment(1)
I did enable it in two places: Enable Edit and Continue on the Web Properties page and my global Visual Studio configuration. Nevertheless I'll read the post when I get home and see if it adds something I was missing. Thanks.Laird
K
0

To anyone running Vista 64 bit...

It may be that the IDE is not ready for Edit and Continue (EnC) web apps on Vista 64 bit without a tweek.

My situation: Migrated Web App to Vista 64 bit. Set platform to x86, set EnC in Tools/Options & Web properties, Debug flag in Web.Config, Debug mode set in Build configuration, etc, etc.

No joy - Could hit break points, inspect variables, etc, but could not EnC.

There were 7 Google hits on Msg "Changes are not allowed if the assembly has not been loaded". No new advice there for this situation though.

After trying numerous things finally tried changing the Build output path from "bin\x86\debug" to "bin\".

There was great joy across the land - Debug with EnC works now.

Karlkarla answered 10/12, 2009 at 2:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.