Results 1 to 7 of 7

Thread: Error after compiling

  1. #1
    Guest
    Hello

    The following problem occurs every time with a project I created with a DBGrid in it.

    Runtime error `-2147417848 (80010108);
    Methof `~` of object `~` failed.

    Does anyone has a possible solution?

    Gr. Menno

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Is this on a different machine to the one it was developed on - if it is you need to make sure all the dependancy files are in place - use the Package & Deployment Wizard to create the setup files for your application.

    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  3. #3
    Guest
    Hello,

    Thanks for replying.

    This is on every machine, also the machine where the project
    is on created. The program will run perfect when in Visual basic. But after compiling the .EXE will give the error.

    Gr. Menno

  4. #4
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    Here is the info from MSDN. If you are using ADO in your program, you may need to update the MDAC. Good luck ! If this is not the case, try searching MSDN (CD version) using "Method `~` of object `~` failed." There are a few other articles that mention this error.


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

    --------------------------------------------------------------------------------
    The information in this article applies to:

    Microsoft Data Access Components versions 2.1, 2.1 (GA), 2.1 SP1, 2.1 SP2
    Microsoft Visual Basic Professional and Enterprise Editions for Windows, versions 5.0, 6.0

    --------------------------------------------------------------------------------


    SYMPTOMS
    When you attempt to run simple ActiveX Data Objects (ADO) code in an application, the following error can occur:

    "Method '~' of Object '~' Failed"



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



    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:
    http://www.microsoft.com/data/download.htm
    If you are using a Microsoft Windows 9x computer, install the latest DCOM version from:
    http://www.microsoft.com/com/resources/downloads.asp
    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:
    http://www.microsoft.com/data/download.htm



    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.



    REFERENCES
    For additional information regarding MDAC installation, click the article number below to view the article in the Microsoft Knowledge Base:

    Q232060 HOWTO: MDAC Setup Troubleshooting Guide
    For additional information, please click the article number below to view the article in the Microsoft Knowledge Base:
    Q217754 HOWTO: Control Which Version of MDAC the VB PDW Distributes

    Additional query words:

    Keywords : kbADO kbMDAC kbGrpVBDB kbGrpMDAC kbDSupport
    Version : WINDOWS:2.1,2.1 (GA),2.1 SP1,2.1 SP2,5.0,6.0
    Platform : WINDOWS
    Issue type : kbprb
    Technology :

    [Edited by jbart on 09-13-2000 at 09:44 AM]

  5. #5
    Guest
    Hello

    Well after checking my MDAC version 2.5 a few version errors appeared. After installing the latest version from the Microsoft site, the problem is still there.

    But I solved the problem by converting the used database from Access 2000 to Access 97 and selecting DAO 3.51 Object Library by the references.
    The convertiong of the database is for me no problem. But does this problem always occurs by Access 2000 Databases?

    Gr. Menno

  6. #6
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    If you haven't done so download SP4 for VB6. It corrects some limitations with VB and Access 2000.

  7. #7
    Guest
    Hello

    I am using VB6 with Service Pack 4 installed. And using the latest version of MDAC (2.5).
    So then it had to work... (I thought ;-))

    Gr. menno


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width