Can't edit and continue when using Visual Studio 2010 on a 64 bit machine, app targets x86

42,820

Solution 1

OK guys I figured it out. The other night I was playing around with IntelliTrace and changed the setting to collect call information. I didn't notice the warning on that page stating "Edit and continue is disabled when collecting Call Information"! See screen shot.

IntelliTrace settings
(source: sedotech.com)

So I just disabled that and I was good to go. Thanks, that was really annoying.

Solution 2

Another solution is to check if any 3rd party references included and check their options for: Embed Interop Types. Set it to False.

Solution 3

One more option to check to enable the Edit and Continue Option.

Go to Project Properties and check the "Enable Edit and continue" Option

enter image description here

Solution 4

I found the problem!

In Advance Compile Option (in Project Properties) Uncheck Enable Optizimations

Solution 5

I had that also solved it by noticing that solution configuration was on release and not debug.

Changed it to debug and now I can edit and continue.

Share:
42,820

Related videos on Youtube

Sayed Ibrahim Hashimi
Author by

Sayed Ibrahim Hashimi

Sayed Ibrahim Hashimi has a computer engineering degree from the University of Florida. He currently works at Microsoft as a Program Manager helping to create better Web development tools. Previously he was a Microsoft Visual C# MVP.He is the author of Inside the Microsoft Build Engine : Using MSBuild and Team Foundation Build (Microsoft Press 01/09), co-author of Deploying .NET Application: Learning MSBuild and Click Once (Apress 05/2006), and has written several publications for magazines such as the MSDN Magazine. He is a developer and independent consultant in Jacksonville, Florida. He is an expert in the financial, education, and collection industries. You can reach Sayed at his blog sedodream.com. Or you can contact me at http://sedotech.com/Home/Contact

Updated on July 26, 2020

Comments

  • Sayed Ibrahim Hashimi
    Sayed Ibrahim Hashimi almost 4 years

    I'm having some problems with Edit and Continue when using Visual Studio 2010 on a Windows 7 64 bit machine. I've ensured the following

    1. Edit and Continue is enabled under Tools>Options>Debugging>Edit and Continue
    2. My solution platform is set to x86
    3. My solution configuration is set to Debug
    4. All my projects are building for Debug and x86
    5. For all projects under Projects>Properties>Build the Optimize code is unchecked

    When I hit a break point and try to edit I and confronted with the following message.

    Changes are not allowed in the following cases
    (source: sedotech.com)

    This is happening for me for all projects that I create whether they are WPF/Win Forms/VB.NET/C#/.NET 4/.NET 3.

    Any ideas?

    • Raj Kaimal
      Raj Kaimal almost 14 years
      Just tried on VS 2010 Ultimate with a .NET 4 Console App. I was able to edit and continue. settins: x86, Debug, Optimize Code unchecked, Target framework .net 4 client profile. Could you try creating a console app (in a seperate single project) and see if you run into the same issue?
    • Brian Rasmussen
      Brian Rasmussen almost 14 years
      Do you have a profiler enabled? In my experience that will disable edit and continue.
    • Sayed Ibrahim Hashimi
      Sayed Ibrahim Hashimi almost 14 years
      Thanks guys, it was related to IntelliTrace. See my answer below.
    • Pete
      Pete about 13 years
      The answer below is only part of the solution. After much searching online, here is the full recipe that helped me with the EnC problem: For your debug build settings: 1. Target x86. 2. Disable code optimizations. 3. Choose to generate "full" instead of "pdb-only" debug info. 4. Change build path to "\bin" instead of "\bin\x86\debug" 5. Enable Edit and Continue in BOTH Visual Studio settings and in the project's "Web" properties panel (for web applications).
    • linquize
      linquize almost 11 years
      Wait for VS2013 if you need Edit and Continue for 64-bit applications!
  • Mick
    Mick over 8 years
    Great information, but this should really be a comment. It's not an answer to this question
  • Chris
    Chris over 8 years
    I don't see this in VS2010. Is it the same as Project Properties > Build > General > Optimize Code?
  • Hameed Syed
    Hameed Syed over 7 years
    Ibrahim,Regrets for commenting this answer in 2016 as we still face the same situation but the VS 2013 onwards IntelliTrace has been removed.Any workaround for this?.