×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

VC++ 2005 gives: "error C1902: Program database manager mismatch"

VC++ 2005 gives: "error C1902: Program database manager mismatch"

VC++ 2005 gives: "error C1902: Program database manager mismatch"

(OP)
Hi,
I had Visual C++ 2003 (Enterprise Edition) installed on my system (XP Pro).
I then installed Visual C++ 6.0 (Enterprise Edition).

At that point, both compilers worked fine.

Then I installed Visual C++ 2005 (Team Edition) + SP1.

The first 2 compilers worked fine, but any program I try to compile with 2005 gives me this error:

CODE

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

I tried reinstalling the 2005 SP1.  No good.
I tried uninstalling 2005 SP1.  No good.
I tried uninstalling VC++ 2005 & 2003, then installing 2005.  No good.

I found some info on Google about C1902, and they just say to make sure your versions of mspdb80.dll & mspdbsrv.exe are the same.

In these directories:
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE"
"C:\Program Files\Microsoft Visual Studio 8\Team Tools\Performance Tools"
"C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv"
The files are:
  mspdb80.dll  = 8.0.50727.42  09/23/2005 12:16AM
  mspdbsrv.exe = 8.0.50727.42  09/23/2005 07:01AM

But in the Windows\System32 directory the files are:
  mspdb80.dll = 8.0.50727.42  2/7/2007 1:07PM
  mspdbsrv.exe doesn't exist there.

And in these directories:
"C:\Program Files\Microsoft Platform SDK\Bin\win64"
"C:\Program Files\Microsoft Platform SDK\Bin\win64\x86\AMD64"
The files are:
  mspdb80.dll  = 8.0.40310.39  04/14/2005 06:11PM
  mspdbsrv.exe = 8.0.40310.39  04/14/2005 06:11PM

Should I just copy the 8.0.50727.42 versions over the 8.0.40310.39 versions, and if so, why does the 8.0.50727.42 version in Windows\System32 have a newer date than the "Program Files" versions?

RE: VC++ 2005 gives: "error C1902: Program database manager mismatch"

(OP)
OK, I copied the 8.0.50727.42 version of the files into the directories with the older versions.

I also did a FC between the two 8.0.50727.42 versions that have different dates, and there are no differences between them.

But I still get the same error when I try to compile something.

RE: VC++ 2005 gives: "error C1902: Program database manager mismatch"

(OP)
Now I re-installed VC++ 2005 SP1 and it updated files to version 8.0.50727.762  12/1/2006 11:29PM only in these directories:
"C:\Program Files\Microsoft Visual Studio 8\Team Tools\Performance Tools"
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE"
"C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv"

RE: VC++ 2005 gives: "error C1902: Program database manager mismatch"

(OP)
Finally!  After 1.5 days of trying everything I could think of...  The answer was as simple as deleting mspdb80.dll from my Windows\system32 directory.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=10577&SiteID=1

Quote:

IMHO this problem arises when mspdb80.dll exists in some of directories that are listed in the PATH environment variable, but mspdbsrv.exe does not. By default, both of them are not on the search path, so just guys like me who are copying files around HDD are able to face this problem :).

Here there's also info about people getting this problem when using Cygwin:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=747804&SiteID=1

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close