Home » C++ ProgrammingRSS

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

Hi all,

When I run some of my small programs I get this message.

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

Mind you I wrote this code complied and ran it yesterday with no error messages.

I run the same code on a work machine and it works fine. Both my computer and the work computer were installed from the same source files.

I searched for this error and was directed to install SP1 version my version is 9.0.30729.1SP

Another suggestion was there was a compatibility issue between 3 files, I have not changed any files and this would not explain this code running yesterday and not today. When I go the link expecting to find the 3 offending files there is nothing there. The files stated as a possible source of my error message are mspdbsrv.exe, mspdbcore.dll, and mspdb80.dll.

I have completely uninstalled and reinstalled no difference, can anyone help please?

The error message in full is

1>Compiling...

1>main_files.cpp

1>.\main_files.cpp : fatal error C1902: Program database manager mismatch; please check your installation

1>Build log was saved at "file://d:\Data\Code\Program_28_Files\Program_28_Files\Release\BuildLog.htm"

1>Program_28_Files - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



The code is

#include<iostream>

using std::cerr;

using std::cin;

using std::cout;

using std::endl;

using std::ios;

using std::left;

#include<iomanip>

using std::setw;

#include<fstream>

using std::ofstream;

#include<cstdlib>

using std::exit;

int main()

{

ofstream ofsDataFile("TestFile.dat", ios::app);

if(!ofsDataFile)

{

cerr << "File could not be opened" << endl;

exit(1);

}

cout << "Enter the Record number, name, and balance. " << endl

<< "Enter end-of-file Ctrl z (^z) to end input.\n";

int iRecord = 100;

char caName[30];

double dBalance;

while(!cin.eof())

{

cout << setw(10) << left << endl << "Record: " << iRecord << endl;

if(!cin.eof())

{

cout << setw(10) << left << "Name: ";

cin >> caName;

}

if(!cin.eof())

{

cout << setw(10) << left << "Balance: ";

cin >> dBalance;

}

if(!cin.eof())

ofsDataFile << iRecord << ' ' << caName << ' ' << dBalance << endl;

iRecord++;

}

return 0;

}




 

8 Answers Found

 

Answer 1

The compiler is finding the wrong version  of mspdbsrv.exe.  Or it always used the wrong version and now it is finding the right one.  Build + Clean is the first thing you should try.  If reinstalling doesn't help, I'd guess that your PATH environment variable got changed, possibly by some kind of rogue installer.  Or your hard drive is toast.  Not a fun problem...
 

Answer 2

I have only ever had one version installed  on my computer. I blew it away downloaded the latest version  reinstalled the problem was not fixed.

I have tried the various clean options solutions/program rebuilds etc. I have deleted the solution created a new one the same problem.

I should say I have some programs  that work  as normal when I run  them via "start without debugging" so some programs work some don't but all used to work. I wrote  a new one last night same problem.

There does not seem to be any logic to what is happening?

I have version 9.00.30729.01 built by: SP  of mspdbsrv.exe 

 

Answer 3

It is the right version, you should find that file in the Common7\IDE subdirectory.  You could perhaps have the wrong version  of the compiler, located in VC\bin.  My version is 15.00.30729.01 (cl.exe, c1.dll, c2.dll).  You could get another version of the compiler through a Windows SDK download.  Verify the path settings in Tools + Options, Project and Solutions, VC++ directories.

Note that mspdbsrv.exe is only used while building your program.  It is a small  helper service that was designed to allow parallel builds, preventing trouble when multiple instances of the compiler try to write .pdb files.  It should not affect running your program.
 

Answer 4

Hi all,

I got a bit spooked about the thought of haivng my hardisk failing, so I backed everything up. I actally do this regularily.

run  bit defender on my system, it was time for it to check  for malware. A couple of hours later no viruses but it is now happy. I decided to also to run resgistry booster a couple of times as usual it found a number of things to clean up in the registry.

Now beleive it or not my system works  again as normal no more error  messages!

I do not know what fixed it? I did not make any changes to software I was more focused in protected what files  I had and cleaning my system.   

I have checked my versions of
cl.exe 15.0.30729.1
c1.dll  15.0.30729.1
c2.dll  15.0.30729.1

All seems to be correct but I still had the error message  and now after the cleanup its fixed. The logs of my registry cleanup is below if there is anything in there that could have caused my problems please let me know.

Thanks to all of you that tried to help it is very much appreciated.

Date of registry change
Sat, March 28, 2009 - 05:14 PM
Bad registry entries
2
Number of entries deleted
2
Details of deleted registry entries
HKEY_CURRENT_USER\Software\microsoft\windows\currentVersion\explorer\fileexts\.asmx
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\OpenWithList

Date of registry change
Sat, March 28, 2009 - 11:11 AM
Bad registry entries
104
Number of entries deleted
104
Details of deleted registry entries
Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.asmx\OpenWithProgids
Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.aspx\OpenWithProgids
HKEY_CLASSES_ROOT\.pal
HKEY_CLASSES_ROOT\visualstudio.ordesigner.9.0\shell\Open
HKEY_CLASSES_ROOT\CLSID\{150E6007-7C6A-4CC3-8FF3-FC73783A972E}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{167AF7E9-BA81-425F-B73D-E30C2DCC0F09}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{1BC4FA57-AEBC-4152-BD7A-075EE0B96381}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{32711D35-7D9D-44E5-B57E-A17D33D5C38C}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{4337F6A7-CF54-4b72-BCC5-CE6DE02C881C}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{70909A92-ECE9-486D-B17E-30EDE908849E}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{86151302-DCDB-49FB-92FE-772EC02712B6}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{8E61C8F6-C91D-43B6-97EB-3423C06571CC}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{8F25687E-2ACA-4EF3-88A3-53099FDAAF43}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{A18A4D58-7C7A-4448-8B98-AE2CEFE81B4C}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{A44C46A3-0A3F-454B-B3BD-0BC23D4BCE94}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{A4B1E1C8-17F3-46C8-AAD0-34F0C6FE42DE}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{C8AEEE54-67A0-41A8-821D-D1C8BED62C68}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{C9269E28-EBDE-4DED-91EB-0BF42842F9F4}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{CEFEB125-5BB5-4F91-A349-94B8961C641B}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{D3FC84FA-748F-40B4-A967-F1574F917BE5}\TypeLib
HKEY_CLASSES_ROOT\CLSID\{DD5A6456-8430-422B-9F50-7EF5A1B63CA8}\TypeLib
HKEY_CLASSES_ROOT\TypeLib\{09AAFD44-A28B-411F-9DBE-EAEB9F6FAD93}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{0ADDA82F-2C26-11D2-AD65-00A0C9AF11A6}\2.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{0F505334-68C9-41E4-A012-2515FC84D2E8}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{1126AB27-4B43-4273-92E4-4ADFBA1F9E9B}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{18BEB7F2-CA98-11D1-B6E7-00A0C90F2744}\5.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{1A31287A-4D7D-413E-8E32-3B374931BD89}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{1D172271-30A2-4F21-8C54-F9119261908A}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{1F1AD402-1AD1-4055-A8CA-AC014BBA10DC}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{1F86A16E-6CED-4386-8FEB-0CC9E9CAB42B}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{283C8576-0726-4DBC-9609-3F855162009A}\1.0\0\win32
HKEY_CLASSES_ROOT\TypeLib\{2A0B7F53-9E5B-4BD3-957B-012C404C5EA3}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{2CE2370E-D744-4936-A090-3FFFE667B0E1}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{307953C0-7973-490A-A4A7-25999E023BE8}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{30E13B9B-CA44-431D-9300-2CB2BC503EEC}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{31411197-A502-11D2-BBCA-00C04F8EC294}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{314111BA-A502-11D2-BBCA-00C04F8EC294}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{3EA6FC77-1682-437E-86B5-2E77FEA38A4B}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{49A1950E-3E35-4595-8CB9-920C64C44D67}\7.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{4A057C3B-214D-4E34-B053-12FF8C353DF0}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{4CF8BA45-15FF-460E-A4CB-FA0C2D4D6B80}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{54E679E9-3423-4D58-AD58-42CBC827D451}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{5A61C236-A586-4831-84E1-93B80BF11E75}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{5CF12919-9D6E-4462-871B-61EE9F2B6340}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{681D6350-F2BD-4668-9EFF-01052A653EBC}\1.1\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{68D93736-4C68-4438-A15B-F5440C9ED8CA}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{6BCBC023-7688-46F6-84B8-62238D26BD35}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{6E944EA2-14A0-4997-98FA-3E1995D80BD9}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{769645DA-2AF1-4CCF-ACF7-01D275A0E731}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{77D2C909-7779-11D8-9070-00065B840D9C}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{7B4319AC-7AA2-4720-9FA8-1C58026B370B}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{7B932C1E-942E-4F8F-A71A-015A41FF634B}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{7C0C4D36-0FA7-4840-B27C-166F91BC9E57}\7.1\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{7C1E4FCC-B47E-44AE-8EA7-FA66EBC8BAC4}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{7DDEAC52-6DC1-46CF-94FC-4C9E3614211D}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{80734943-4D14-4C3E-8B79-F84D990BDF7F}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{81845511-3225-4D12-9F9D-921EF1145397}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{81845511-3225-4D12-9F9D-921EF1145397}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{8689211B-2B18-4914-A1CB-BC38A3CE22E4}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{884AEDC6-5139-4478-AEF1-0643307F3BDF}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{8877CB60-C815-444B-BE2E-E0C8337B8CF0}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{8D24A2AA-C2C6-4788-A3F8-915AE4E474AE}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{9052FD54-B601-48C1-B6DD-39690B11A67D}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{95FF4B0C-E6EC-470C-82AC-EB0471714C5A}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{A3EAC9E1-0CD5-4930-88C4-098F43532317}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{A6613CCA-B54B-43B0-AE3C-BA7E299C1CC8}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{A8950F70-7F65-4182-B160-7B13213CC28C}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{AAB71859-D7A6-476D-9C49-F2F949B9A8E9}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{AC2344F4-EFED-489B-BA85-D77BA97753AC}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{AF610023-1C9F-470E-9BB3-EA8E3E4C4AF9}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{B23072CE-16E0-465B-9F1E-B66BCF5E582A}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{B4CB32F8-F8DC-11D2-A4AE-00C04F68FC81}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{B5D4541F-A1F1-4CE0-B2E7-5DA402367104}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{B6825DEF-75E7-47B2-BF09-CE7520A81350}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{C4053E25-06D5-436F-A905-4CE389A2D71E}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{C44E187D-EEEA-4ACA-B91D-A136C68E90F8}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{C8698856-9CDE-4BC4-B86C-1E70F97AA1EA}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{CF18CA6F-0C36-4095-8EB8-A43322CF64E1}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{DB7A405D-208F-4E88-BA0A-132ACFA0B5B6}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{DCBF68C6-DA4B-44F5-B9E0-1563EC000392}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{E0693282-3BDE-47EC-8760-63FC05025AD4}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{E2A0BD3A-DF9A-4333-9464-7A2E7BC97A0B}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{E61E556D-6E68-42B2-BDB5-57E205A82DBA}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{E9564DFB-C560-45A3-A268-9675C9ADD1D8}\8.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{ED98B49B-8613-473A-BD44-BDADBA91B21C}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{EFCC661C-7941-47A2-AB18-831265587539}\9.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{EFFC43A4-D096-405E-8B4F-D78382AF21DA}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{F42610EA-179B-410F-8411-E5F61AAFCED3}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{F4E62433-FDB8-47A9-990A-687A1CEF76DF}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{F74BCDC8-0CFB-4F53-8983-A0C1320AF18E}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{F77BEA62-D9C6-4B86-8AB3-AC6AD1428F60}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{F911ED06-9DB7-487C-AA14-9F4715E1E463}\1.0\HELPDIR
HKEY_CLASSES_ROOT\TypeLib\{FAD11436-A84C-4720-8D20-B07FE84FDE74}\1.0\HELPDIR
HKEY_CLASSES_ROOT\Interface\{071EB565-5358-4ECF-80BB-EEBB2DD4599C}\ProxyStubClsid32
HKEY_CLASSES_ROOT\Interface\{15F50942-17C2-4DAF-BF68-735283A3DC99}\ProxyStubClsid32
HKEY_CLASSES_ROOT\Interface\{9E979803-6805-4F1B-923B-BEA6CE099B7F}\ProxyStubClsid32
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AA4A4B2C-0465-3CF8-BA76-27A027D8ACAB}.KB945282
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AA4A4B2C-0465-3CF8-BA76-27A027D8ACAB}.KB951708
HKEY_CURRENT_USER\Software\Google\Google Desktop
HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server\MSSQL10.SQLEXPRESS\SQLServerAgent
HKEY_LOCAL_MACHINE\Software\Microsoft\MSEnvCommunityContent\ContentTypes\Code Snippet\ContentHosts\1.0\Visual Studio Tools for Applications 2005
 

Answer 5

Well it looks like I spoke to soon. I can compile the program  I could not compile in my initial listing however my next program I wrote  the problem re appears once again? I have this extra peice of information

1>cl : Command line warning D9028 : minimal rebuild failure, reverting to normal build

I tried deragmenting re-running register booster, the problem persists. So I am back to square one can anyone help? I was afraid this would happen as I did not know what allowed me to complile the code  that first showed up this error.

Any help greatly appreciated.
 

Answer 6

I am surprised there is no solution to my problem. I think there is a bug in the software but no one seems to be helping?

I had to install  another IDE which is working fine. However I would prefer to move back to Visual Express 2008 when able.

I will try and start a new thread on "Command line warning D9028 : minimal rebuild failure, reverting to normal build" hopefully there will be more hits on it and a solution?

Any help greatly appreciated.
 

Answer 7

Hello,
I'm running into this same exact issue compilnig a VS2008 C application and wanted to know if you ever got a resolution to your issue.

Thanks
 

Answer 8

hello

I was getting the error  and then i found that i mistakenly placed mspdb80.dll in C:\Program Files\Microsoft Visual Studio 8\VC\bin\ folder.

Regards

 

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter