MOD2000: "An Error Occurred While Registering the File Msado21.tlb" Error Message When You Install Package (253662)



The information in this article applies to:

  • Microsoft Office 2000 Developer

This article was previously published under Q253662

SYMPTOMS

After you create an Access solution with the Package and Deployment Wizard on a computer that is running Microsoft Windows 2000 Professional, when you try to install the package on another computer, you may receive the following error message:
An error occurred while registering the file 'C:\WINDOWS\SYSTEM32\msado21.tlb'

CAUSE

Your Access solution contains a Visual Basic for Applications project that has a reference to the Microsoft ActiveX Data Objects 2.1 Library.

RESOLUTION

To resolve this problem, obtain Microsoft Office 2000 Developer Service Release 1 (SR-1).

To obtain SR-1, click the article number below to view the article in the Microsoft Knowledge Base:

253566 MOD2000: How to Obtain and Install Microsoft Office 2000 Developer Service Release 1 (SR-1)

To temporarily work around this problem, follow these steps:
  1. In Windows Explorer, open the following folder:

    C:\Program Files\Microsoft Office\ODETools\V9\PDWizard

    NOTE: This folder may be in a different location, depending on where you installed Microsoft Office 2000 Developer.
  2. Click the ODEdep.ini file.

    NOTE: If you have selected to hide the file name extensions in Windows Explorer, the file will appear as ODEdep.
  3. On the Edit menu, click Copy, and then click Paste. This creates a backup copy of the ODEdep.ini file.
  4. Open the ODEdep.ini file in Notepad.
  5. On the Edit menu, click Find.
  6. In the Find dialog box, type do not redistribute, and then click Find Next. Note that the mouse pointer moves to the [Do Not Redistribute] section of the file.
  7. In the [Do Not Redistribute] section, create a new line, and then type the following entry:

    msado21.tlb=

  8. Save the file, and then quit Notepad.
  9. Create a new package of your solution with the Package and Deployment Wizard. This new package will not cause the error message that is mentioned in the "Symptoms" section of this article when you install the package on another computer.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.  This problem was corrected in Microsoft Office 2000 Developer SR-1.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. On a clean computer, install Microsoft Windows 2000 Professional (not Microsoft Windows 2000 Server).
  2. Install Microsoft Office 2000 Professional and Microsoft Office 2000 Developer.
  3. In a new Access 2000 database, open the Microsoft Visual Basic Environment. Create a new project.
  4. On the Tools menu, click References.
  5. Click to select the Microsoft ActiveX Data Objects 2.1 Library check box.
  6. Save the project.
  7. Use the Package and Deployment Wizard to package the project.
  8. On another clean computer, run the Setup file for this package. Note that you see the error message that is mentioned in the "Symptoms" section of this article.

Modification Type:MajorLast Reviewed:1/9/2003
Keywords:kbbug kbPDWizard KB253662