Microsoft KB Archive/253662

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

Article ID: 253662

Article Last Modified on 1/9/2003

-

APPLIES TO


 * Microsoft Office 2000 Developer Edition

-



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:  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. 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. On the Edit menu, click Copy, and then click Paste. This creates a backup copy of the ODEdep.ini file. Open the ODEdep.ini file in Notepad. On the Edit menu, click Find. 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.</li> In the [Do Not Redistribute] section, create a new line, and then type the following entry:

msado21.tlb=

</li> Save the file, and then quit Notepad.</li> 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.</li></ol>

<div class="status_section">

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.

<div class="moreinformation_section">

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.

Additional query words: pra an error occurred while registering the file c windows system32 msado21 tlb pdw package distribute setup runtime run-time win2000

Keywords: kbbug kbfix kbpdwizard KB253662

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.