Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 867
Tyler Durden Avatar asked Sep 07 '12 20:09

Tyler Durden


2 Answers

I solved the problem by finding an obscure 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.

like image 59
Tyler Durden Avatar answered Sep 18 '22 14:09

Tyler Durden


cyglas-config solved the problem on my build system. Is seems that Vs2010+ needs this but vs2008 didnt.

like image 25
sorin Avatar answered Sep 22 '22 14:09

sorin