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

    Question

  • I get these errors when trying to compile a C+ project

    using command line compiler of VS2010. I have searched the web for posible solutions which lead me to this page: [url]http://msdn.microsoft.com/en-us/library/8y7hea02%28VS.80%29.aspx[/url]

    Okay I thought some version mmismatch due to SP1 so I reapplied the SP1 but seems the same, get this error still.

    Affected files version numbers, locations and checksums:

    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe
    Fileversion: 16.0.40219.1
    Productversion: 10.00.40219.01
    MD5: 9b08aef89898949a694d461997aabca6

    C:\Windows\SysWOW64\mspdb100.dll
    Fileversion: 10.0.30319.1
    Productversion: 10.00.30319.01
    MD5: 609c1d1be515d18aa64e3a6b571d5ba7

    C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mspdbsrv.exe
    Fileversion: 10.0.30319.1
    Productversion: 10.00.30319.01
    MD5: def9f717fc22e899d5109a031d236e52

    C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mspdbcore.dll
    Fileversion: 10.0.30319.1
    Productversion: 10.00.30319.01
    MD5: 52f59aaa0d12f280fbc658b121445c9b

    All binaries are i386 architecture. The compiler gives error only if I state /Zi compiler option, otherwise it succeeds with compile.

    I'd be thankful If someone find an inconsistence on it or pointed out the problem

    Saturday, August 20, 2011 8:55 AM

All replies

  • Two thoughts:

    • although you are building for i386, is it possible that you are using 64-bit compiler/linker etc. to build them?  If so, check the 64-bit equivalent files for consistency.
    • Note the 'usually' on 'This error usually indicates ...'.  This error might also occur if you have a mismatched pdb from somewhere.  Try deleting all the .pdb files in your solution and rebuilding from clean.

    Answering policy: see profile.
    Saturday, August 20, 2011 4:18 PM
  • thanks for liking my avatar :)

    -- pa

    Saturday, August 20, 2011 4:21 PM
  • Two thoughts:
    • although you are building for i386, is it possible that you are using 64-bit compiler/linker etc. to build them?  If so, check the 64-bit equivalent files for consistency.
    • Note the 'usually' on 'This error usually indicates ...'.  This error might also occur if you have a mismatched pdb from somewhere.  Try deleting all the .pdb files in your solution and rebuilding from clean.

     

    No I it seems to deal with both platforms

     

    "D:\Microsoft\Visual Studio 10\VC\bin\amd64\cl.exe" test.cpp  /c /Od /RTC1 /MDd /Gd /Zi

    gives

     

    [code]Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01 for x64
    Copyright (C) Microsoft Corporation.  All rights reserved.

    test.cpp
    test.cpp : fatal error C1902: Program database manager mismatch; please check your installation
    [/code]

     

    It looks that I don't have any associated PDB files with my project (actually it is a simple helloworld source in empty directoey). I've been under impression that this may concern a central PDB file like older compiler versions used to create some common VC*.pdb but can't locate anything such.

     

    I've googled for the error message and as I see this error is quite well known but didnot find any universal solution.

    Tomorrow I'm going to fresh install VS 2010 SP1 on clean OS and compare concerned files versions if I see something suspicious but I don't expect much of it. The only version inconsistence I see are between compiler(linker) frontends and the mspdb*.* components whose don't seem being updated in SP1 at all. The error message is too vague for me.

    Saturday, August 20, 2011 4:32 PM
  • By the way I remember I have installed more VS version on my machine. Is it possible the compiler uses incorrect mspdbsrv.exe?
    Saturday, August 20, 2011 4:39 PM

  • thanks for liking my avatar :)

    -- pa

    It's not your avatar :)
    Saturday, August 20, 2011 6:17 PM