Last post Aug 30, 2011 12:20 PM by nir_hp
Jun 06, 2006 12:49 AM|russnem|LINK
Oct 17, 2007 10:11 AM|Vijayeshw|LINK
I have also faced the same problem on migrating the application .net 1.x to 2.0 and i solved by disabling the "Warn if no user code on launch" under the debugging option in the tools menu.
Tools --> Options --> Debugging --> General --> Enable Just my code (Managed only) --> un check "Warn if no user code on launch"
Dec 12, 2008 03:00 PM|JByrd2007|LINK
"The following module was built either with optimizations enabled or without debug information"
I encountered this problem in Visual Studio 2008 and like others here, my project settings did not have optimizations enabled and debugging information was configured. My problem turned out to be that the project assemblies stored in the GAC were from an
older build. I think when I started debugging, VS tried to map between the GAC assemblies and the new source and could not do so and threw up this message. Deleting my old assemblies from the GAC resolved my issue.
Hope this helps!
Visual studio 2005 2008 Debugging
Feb 24, 2009 12:48 AM|ankitavyas|LINK
Thanks mate. It solved my problem.
Jul 21, 2009 09:28 AM|ssat|LINK
Feb 22, 2010 03:22 PM|edersonbadeca|LINK
I've had the same problem and to solve I've cleaned up the GAC and worked well
Mar 28, 2010 07:11 AM|asaf shelly|LINK
A version control tool updated only some of my files.
The solution was to find the application in the solution which uses the library as reference, delete the reference and add it again.
Sep 23, 2010 09:45 PM|stevensn|LINK
I have finally gotten to the bottom of this problem so i thought i should share my solution, after reading through hundreds of post, all of them hinting to my having built the offending assembly in Release mode or with the optimze flag checked.
I checked and the optimize flag for unchecked and my assembly was producing debug symbols but no joy
Unchecked the Just My Code flag in Tool->Options->Debugging, whilst that got rid of the message an allowed me to debug i could not fully debug as stepping into some routines did not work.
I even tried recreating the solution from scratch to try and pin down where the problem was occurring thinking that maybe this was to do with x86 or x64 builds, still no dice.
Finally i figured that maybe it was permissions as my web site folder was not under wwwroot, i tend to include my web site folder with the rest of my source under my solution folder, i added NETWORK SERVICE to my web sites folder security, compiled and ran
the solution and hey presto the message was gone and i was finally able to debug my solution without any problem.
Anyway, thought i would share in case this was driving anyone else insane.
In addition to the above i discovered another reason that this may occur, in one of my assemblies i had the following line in the AssemblyInfo.cs
Removing this line fixed the problem as well, so i replaced the above with this
Hope it helps
Sep 24, 2010 06:58 AM|srinivask|LINK
Sep 24, 2010 10:49 AM|abul_shock|LINK
Hi.. i was getting the same error... I just cleaned up my project (Right click on Solution --> Clean solution) and rebuilt the whole solution.
The close the IDE and reopen again. The error went away!
the following module was built either with optimizations
Nov 03, 2010 04:12 PM|rodniko|LINK
SSAT solution solved my problem - just erase the files in the Bin folder and rebuild!
Apr 01, 2011 05:50 PM|BKahuna|LINK
Abul's solution did it for me. I had to include each step:
Jun 13, 2011 11:19 PM|M1k|LINK
I received this message after adding a blank App_GlobalResources folder to my web application.
The message continued even after adding a global resource file, but went away upon adding a resource entry!
Aug 30, 2011 12:20 PM|nir_hp|LINK
I had the same issue, my solution was:
solution explorer -> right click over my solution -> properties -> build tab -> advanced (at the bottum of the screen) -> debug info = full