Resolving Symbols Not Loaded Error In Visual Studio

Way too often than we would like, we encounter this annoying error. And the most commonly used method of resolution is to manually resolve this issue by specifying a path to the pdb file as described below:

  1. Open the Modules window
    Debug Menu > Windows > Modules

  2. In Modules window, locate the offending dll.

  3. Manually locate the pdb file associated with the dll.

I have been using the above method, until recently I’ve discovered that, the above method isn’t actually the best way or approach to this issue. The best approach is to correct the Debug Info setting in your build settings for the offending project.

Within each project’s build settings, there’s a setting which controls whether a pdb file should be generated in the temporary folder of your application under the .NET framework folder or not. It is also worth noting that; Visual Studio uses this pdb file located in the temporary folder for debugging – not the pdb file in your project’s bin folder.

Resolution Steps:

Step 1

Go to the Build settings of the offending project.

Figure 1. Screenshot of Build Settings dialog.

Step 2

Scroll right down to the “Advanced” button.

Figure 2. Screenshot of Advanced Settings button on Build Settings dialog.

Step 3

Make sure “Debug Info” NOT set to “none”.

Figure 3. Screenshot of Advanced Build Settings popup dialog.

Leave a Reply

Your email address will not be published. Required fields are marked *