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

后端 未结 30 2066
离开以前
离开以前 2020-12-04 07:30

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). De

相关标签:
30条回答
  • 2020-12-04 08:15

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

    0 讨论(0)
  • 2020-12-04 08:17

    My case is following: webservice referenced lib1.dll. Later I removed reference as it was no longer used. However lib1.dll remained in the bin folder. Because library was not referenced then Rebuild and Clean actions were not helpful. After manually deleting lib1.dll from bin folder I've get rid of this message.

    0 讨论(0)
  • 2020-12-04 08:19

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

    0 讨论(0)
  • 2020-12-04 08:21

    Just to add, I was looking at this blog to find the solution to the same problem I was facing. Unfortunately the solutions mentioned above didn't help me. At last I figured out, I was installing my bits (along with .pdb) through installer and setting permission explicitly on the installation folder.

    Because of which VS was not able to load the pdb even though the file browser was showing the correct file but it was giving the same error mentioned above.

    Once I unchecked "Enable Just my code" and removed permission settings from the installer, VS started loading the module.

    0 讨论(0)
  • 2020-12-04 08:23

    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

    0 讨论(0)
  • 2020-12-04 08:23

    Guessing VS 2008 is not rebuilding the dll correctly.

    1) Delete all occurrences of the dll

    2) Rebuild solution

    And that should fix it.

    0 讨论(0)
提交回复
热议问题