views:

4532

answers:

15

I cannot get rid of this in my VS 2008 web project when debugging. I've checked that it's in debug mode on the non-web project in question and it's in Active(Debug). Deleted all items in my .NET 2.0 temp folder in Windows. Not sure what else to do here.

A: 

You mentioned it's a web project...do you have

<compilation debug="true />

in your web.config?

Jonas
it's already there.
+2  A: 

Check your build configuration options. Make sure optimizations are turned off and the DEBUG constant is defined.

lc
Build is selected and optimizations are definitely off.
+2  A: 

resolved. Deleted all occurences (all projects) of the dll in question.

+6  A: 

I had the same problem and discovered that I wasn't outputting my debug info on my build. If you right click on the project and go to 'properties', then select the 'build' tab, on the bottom of the page there's an 'Advanced...' button that will display your setting for you output debug info. Set that to 'full' and the error should go away.

Geert
A: 

I too have all these. And I've done all this. It appears this happens to me every time I get a fresh copy of the entire solution out of source control. So if we've done all these, deleted dlls & .pdb files for all references (Assemblies) in the web project, used the clean option on the solution, deleted temp files, closed out VS and reopened, made sure debug mode is selected and set at full and optimations are off, what more is there?!?!?!

CoffeeAddict
A: 

This issue has been driving me crazy for a really long time, and I still haven't been able to find a solution that works! I've deleted all .ddl and .pdb, set wide open permissions on the project and framework folders, changed my compilation settings and nothing works.

heyjones
A: 

Has anyone solved this issue? I'm having the same problem too. Project is set to Debug mode. I've deleted then rebuilt dll's and deleted temp files and still no joy. This must be a bug in Visual Studio. PLEASE SOMEONE HELP.

Mitchy
A: 

At least for non-web applications this works:

From: http://www.stellarpc.com/articles/board.aspx?id=40

2 - Allow Debugging...

Due to the nature in which one of the assemblies has been built in your application, you will need to change a few settings to allow the code to be handled by the Visual Studio Debugger.

Right click on any project in question from the solution explorer and select 'Properties'. This will open up the project properties panel giving us access to a great many options for our projects. Navigate to the 'Complile' Tab (or 'Build' if your in a C# environment) and select 'Advanced Compile Options...' from the bottom of the screen. This presents us with a prompt that has two key areas of interest:

1) Optimizations - uncheck 'Enable Optimizations'

2) Generate debug info - Ensure that the option is set to 'Full'

uzbones
+7  A: 

Try disabling "Enable Just My Code" in Tools/Options/Debugging/Options.

500 - Internal Server Error
I did that and it worked. I was able to use breakpoints and step through code. I don't get it. Why did it work? (I was debugging a Managed C++ module referenced by a Win Service using VS2010)
tzup
VS seems to get confused at times over what's 'our code'.
500 - Internal Server Error
I just had this issue and your solution worked for me. Thanks!
Colin O'Dell
A: 

Try rebooting...seriously...I shut down VS, started back and up and no problems. SQL Server was out of control on memory and I recycled the MSSQLSERVER service as well.

A: 

Guessing VS 2008 is not rebuilding the dll correctly.

1) Delete all occurrences of the dll

2) Rebuild solution

And that should fix it.

Nemo
A: 

I had the same problem after building with a Release configuration. It turned out that when I switched back to Debug, VS wasn't detecting any differences, so it was not updating the .dll and .pdb files in the bin folder.

Here's what worked for me:

  1. Run iisreset (to clean up the temporary folders)
  2. Save the web.config (to force VS to actually rebuild)
  3. Rebuild on Debug
  4. Start the project
bubbassauro
A: 

Try a rebuild then debug.

Ian
A: 

hi,

Check out this link

http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/43cb16ba-0759-42ab-8e7d-9f168ace3b6f

try unchecking "Just My Code" in Tools->Options->Debugging->General.

it works for me

raksham