Visual Studio 2010: Fatal Error C1902 about “progr

2020-08-13 05:28发布

问题:

Here's some description from MSDN

Error Message program database manager mismatch; please check your installation A program database file (.pdb) was created using a newer version of mspdb80.dll than the one found while compiling.

This error usually indicates that mspdbsrv.exe or mspdbcore.dll are missing or have different versions from mspdb80.dll. Ensure matching versions of mspdbsrv.exe, mspdbcore.dll, and mspdb80.dll are installed on your system.

and I want to know what is "program database manager"? And what's the relationship with "mspdbsrv.exe, mspdbcore.dll, and mspdb80.dll"?

回答1:

fatal error C1902: Program database manager mismatch; 
please check your installation

If you have kept mspdb100.dll in D:\Program Files\Microsoft Visual Studio 10.0\VC\bin folder means this problem will be there. Remove it from the bin folder it is not suppose to be there.



回答2:

I had the exact same problem even with an uninstall and reinstall of VS with a Project SLN for the Opus codec.

After hours of searching Google I believe I've found the solution that comes from the accumulation of a number of answers from other forums and sites that did not, by themselves, work.

After an uninstall and reinstall of VS2010 copy the following files from Common7\IDE to VC\bin

mspdbsrv.exe
mspdb100.dll
mspdbcore.dll
mspdbst.dll


回答3:

Cleanly rebuild the project. You will get new exe , pdb and related files.



回答4:

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