Article ID: 299645 - Last Review: October 15, 2002 - Revision: 1.0 BUG: Error "Unable to Register MSADO15.TLB" If You Use a PDW Package to Install a VB ApplicationThis article was previously published under Q299645 SYMPTOMS
When you use a package that you created with the Package and Deployment Wizard (PDW) to install a Visual Basic application, you may receive the following error message (or similar) during the installation:
Unable to register MSADO15.TLB
CAUSE
The Package and Deployment Wizard adds the type library (.tlb) file to the package because the type library is referenced in your project. The PDW also erroneously assigns the $(DLLSelfRegister) registration macro to the type library in the Setup.lst file that is created for your installation package. Most commonly, this problem occurs when your Visual Basic project contains a reference to a version of ActiveX Data Objects (ADO) that is earlier than the latest installed version. The reference for the latest installed version of ADO points to MSADO15.DLL. Earlier version references point to the above-mentioned ADO type library files. RESOLUTION
This file does not need to be explicitly included in your package. If you have a reference to an ADO type library in your project, you are utilizing ADO in your application and must distribute Microsoft Data Access Components (MDAC_TYP.EXE). The only exception is if you can guarantee that the correct version of MDAC will already be installed on your target computers. Because the MDAC installer includes the type library, there is no reason to include it specifically. There are several ways to resolve this problem. Which method you use depends on your circumstances and whether it is convenient for you to repackage the application. In Resolutions 1 and 2, you do not have to repackage the application. Resolutions 3, 4, and 5 require repackaging. Resolutions 4 and 5 are the only long-term fixes and are recommended. Resolution 1
Resolution 2
Resolution 3
Resolution 4
Resolution 5
STATUSMicrosoft has confirmed that this is a problem in the Package and Deployment Wizard for Visual Basic 6.0. MORE INFORMATION
The error is raised because the PDW attempts to use $(DLLSelfRegister) for type libraries rather than $(TLBRegister). However, if you receive this error during installation, it does not necessarily mean that the installation will fail. It also does not mean that the application will not run after installation. This error does indicate that you may have a different version of the ADO type library referenced in your project than you are distributing with your application. This can potentially cause other problems, so Microsoft recommends that you verify the version information. See the "References" section for additional information.
REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
217754
(http://support.microsoft.com/kb/217754/EN-US/
)
HOWTO: Control Which MDAC Version the Package and Deployment Wizard (PDW) Distributes
213846
(http://support.microsoft.com/kb/213846/EN-US/
)
INFO: Deploy Database Applications with the Package and Deployment Wizard (PDW)
| Article Translations
|

Back to the top
