Welcome to AspAdvice Sign in | Join | Help

AzamSharp

Some day I will know everything I hope that day never comes

Syndication

Tags

Navigation

The following module was built either with optimizations enabled or without debug information

I am working on an application that have serveral projects added to it. This problem was coming from the Web Application Project referencing the Class Library Project. The only fix so far I found was to exclude and then delete the Class Library Project references from the web project and add them again.

The interesting thing is that when this error comes it freezes up the whole IDE. Not sure why it comes randomly!! 

Sponsor

Published Monday, September 25, 2006 12:36 PM by azamsharp

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: The following module was built either with optimizations enabled or without debug information @ Friday, October 27, 2006 10:07 AM

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.

Joe Manning

# re: The following module was built either with optimizations enabled or without debug information @ Friday, June 01, 2007 6:51 AM

I have tried both of these solutions, but it still doesn't work. :(

Tim

# re: The following module was built either with optimizations enabled or without debug information @ Wednesday, June 06, 2007 7:31 AM

I had the same problem, check all the following On the project properties tab:- Properties Build configuration - set to debug Define debug constant - checked define trace constant - checked optimize code - un-checked warning level - 4 On the advanced tab at the bottom Debug Info - full If none of that works then try, on the tools/options menu, under debugging, uncheck the "enable just my code(managed only)", this fixed it for me. Seems like a bug in vs2005....

craig

# re: The following module was built either with optimizations enabled or without debug information @ Friday, June 15, 2007 8:34 AM

yeah, Thanks craig, the last one worked for me. the tools/options menu, under debugging, uncheck the "enable just my code(managed only)", Thanks Manish

Manish

# re: The following module was built either with optimizations enabled or without debug information @ Wednesday, July 04, 2007 1:30 PM

"On the tools/options menu, under debugging, uncheck the 'enable just my code(managed only)'..." This fixed the issue for me. Not sure what it changed, but it works without that annoying message now. Thanks!

Joe

# re: The following module was built either with optimizations enabled or without debug information @ Wednesday, September 05, 2007 10:51 AM

Unchecking "enable just my code (managed only)" disables debugging, and is not a viable solution for me. Any other options?

roncli

# re: The following module was built either with optimizations enabled or without debug information @ Friday, November 02, 2007 5:02 AM

The problem could also be that Visual studio, for some reason, are unable to overwrite the files in you bin folder. In this case the solution would be to find the solutions bin folder and delete everything in it. Then do a rebuild and everything should be back to normal. /Peter Zach Linnet

Peter Zach Linnet

Leave a Comment

(required) 
required 
(required) 
Enter the code you see below