Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Improper Installation of MDAC May Return Error Message "Method '~' of Object '~' Failed" at Run Time with ADO Application


View products that this article applies to.

Symptoms

When you attempt to run simple ActiveX Data Objects (ADO) code in an application, the following error can occur:
"Method '~' of Object '~' Failed"

↑ Back to the top


Cause

The most common cause for this error is mismatched DLL files with Microsoft Data Access Components (MDAC).

↑ Back to the top


Resolution

To work around this problem:
  • Make sure to install the appropriate Mdac_type.exe file that matches the same version you developed with your application. You can find the file at:
  • If you are using a Microsoft Windows 9x computer, install the latest DCOM version from:
  • If you are deploying this application, be sure to use the Package and Deployment Wizard and distribute the correct Mdac_typ.exe file version. Also make sure that the computer is restarted after MDAC installation unless you are explicitly implementing a silent install.

  • If you are still having problems, obtain the Component Checker to remove MDAC and install it again. The Component Checker can be obtained at:

↑ Back to the top


More information

Although this error has not been consistently reproduced, the items in the "Resolution" section appear to be effective in correcting the problem.

The preceding error is only one of the ways that mismatched DLLs may manifest themselves. A different error may occur. The component checker mentioned in the Resolution section will help determine if there are mismatched DLLs.

↑ Back to the top


References

For additional information regarding MDAC installation, click the article numbers below to view the articles in the Microsoft Knowledge Base:
232060 HOWTO: MDAC Setup Troubleshooting Guide
217754 HOWTO: Control Which MDAC Version the Package and Deployment Wizard (PDW) Distributes

↑ Back to the top


Keywords: kbprb, KB255986

↑ Back to the top

Article Info
Article ID : 255986
Revision : 6
Created on : 5/17/2007
Published on : 5/17/2007
Exists online : False
Views : 520