Last post Aug 30, 2011 11:20 AM by nir_hp
Jun 05, 2006 11:49 PM|russnem|LINK
Oct 17, 2007 09: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 02: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 23, 2009 11:48 PM|ankitavyas|LINK
Thanks mate. It solved my problem.
Jul 21, 2009 08:28 AM|ssat|LINK
Feb 22, 2010 02: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 06: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 08: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 05:58 AM|srinivask|LINK
Sep 24, 2010 09: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 03:12 PM|rodniko|LINK
SSAT solution solved my problem - just erase the files in the Bin folder and rebuild!
Apr 01, 2011 04:50 PM|BKahuna|LINK
Abul's solution did it for me. I had to include each step:
Jun 13, 2011 10: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 11:20 AM|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