Article ID: 236281
Article Last Modified on 8/7/2007
APPLIES TO
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
This article was previously published under Q236281
SYMPTOMS
A Visual Basic project using the Data control or otherwise has a Reference to the Microsoft DAO Object Library, is compiled into an executable file. The Package and Deployment Wizard is used to create a deployment package. When this package is run on another computer, the following error message appears:
CAUSE
Your setup package contains Expsrv.dll version 6.0.0.8268 or earlier.
The setup package is attempting to register Expsrv.dll. Version 6.0.0.8268 is not a self-registering file. However, it includes the resource tag OLESelfRegister, which indicates that it is a self-registering file.
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This problem was first corrected in Visual Studio 6.0 Service Pack 3. However, we recommend that you install the latest Visual Studio service pack and create a new deployment package.
For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:
194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed
To download the latest Visual Studio service pack, visit the following Microsoft Web site:
MORE INFORMATION
Steps to Reproduce Behavior
- Start a new Visual Basic Standard EXE project. Form1 is created by default.
- Add a data control to Form1.
- Save and compile the project.
- Use the Package and Deployment Wizard to create a deployment package.
- Run the deployment package on another system. The error message appears when the deployment package attempts to register the file Expsrv.dll.
REFERENCES
For related information on this problem, click the article number below to view the article in the Microsoft Knowledge Base:
196057 PRB: The Jet VBA File VBAJet32.dll Failed to Initialize
Keywords: kbbug kbdeployment kbfix kbvs600sp3fix kbwizard KB236281