Search code examples
visual-studio-2010

Notorious Visual Studio Error C1902, VS configuration


I am getting the notorious "Error C1902: Program database manager mismatch; please check your installation" in my VC++ builds in Visual Studio 2010. My VS will not even build hello world, there is no pdb file even in existence in the folder.

Steps I have tried:

  • cleaning and rebuilding (3 different projects including hello world, about 15 times)

  • removing every single instance of Visual Studio before version 2010 from the computer including all redistributables. There is no copy of mspdb*.dll on my computer anywhere except the latest version (100) in my 2010 directory.

  • Reinstalling 2010. I completely reinstalled VS 2010. No effect.

  • Rebooting my computer. I have spent the afternoon deleting anything that might be remotely related to this bug and rebooting over and over again.


Solution

  • I solved the problem by finding a post to a similar thread created a couple of years ago on a different forum. Here is the solution:

    Copy the file mspdbsrv.exe from the VisualStudio/Common7/IDE directory to the /VC/bin directory.