The Following Module was built either with optimizations enabled or without debug information

Viewed 97246

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.

34 Answers

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.

enter image description here

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

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

If everything else fails, try renaming the Assembly name in the project's properties. This fixed the issue for me.

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?!?!?!

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

<compilation debug="true />

in your web.config?

I also had this issue, one way to solve this issue is the project from which file is opening in metadata form, add that project as a project reference and not as a file reference such as dll or exe.

Related