Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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


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


I just ran into this issue, and quickly decided that the other answers posted didn't apply to me.

disable

I'm the owner of the project, and I know it was built with debug information, as well as without optimizations. Furthermore, I'm never happy choosing the disabling of a warning as my first choice. Hiding/ignoring this warning could become an issue in a future debugging session.

Since this only started occurring after I signed the assembly, this clued me in on my quick fix: temporarily remove the strong name of my DLL (and consuming EXE). Voila! Problem solved.

A better, long-term solution, could take the form of adding a post-build action to update the GAC so it has the latest version of the signed DLL.

But for now, I'm happy to move on from this diversion, and continue working on the issue that brought me to this debugging session.


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


VS2012, clean and rebuild fixed the issue for me. "Properties" -> "Build" -> Optimize code is unchecked. "Properties" -> "Build" -> "Advanced" -> Debug Info: Full


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