CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2004
    Posts
    34

    Question Method'~' of object '~' failed "

    Hi everybody

    I have developed a software using VB6, one of my client faced the following error

    Run-time error'-2146697208 (800c0008)':
    Method'~' of object '~' failed"

    I have got some information where MSDN is saying that this error can occure if the MDAC was not properly installed. but my application is not using MDAC, but it is using XMLHTTP30. The error may be due to sending request using XMLHTTP30.

    any idea why the application is showing this error message.

    thanks in advance

    regards,

    kajol

  2. #2
    Join Date
    Oct 2001
    Location
    Melbourne, Australia
    Posts
    576

    Re: Method'~' of object '~' failed "

    are you sure you have installed all the dll's, ocx, etc required by your app (and in particular the XMLHTTP30 components requirements) on the client machine?

  3. #3
    Join Date
    Nov 2004
    Posts
    34

    Question Re: Method'~' of object '~' failed "

    I have recieved a different error message if the dll files ware not properly installed and the error message was

    Run-time error '429'
    ActiveX component can't create object

    can that error [I have specified earlier] be due to improper installation of some dll files?

    regards,

    Kajol

  4. #4
    Join Date
    May 2001
    Posts
    91

    Re: Method'~' of object '~' failed "

    Hi,

    Error 429 usually appears either when a dll is not correctly registered (-> use regsvr32 in command prompt), dll's that are used by this dll are not existing or not correctly registered (-> check / create dependency file ), or in the context of different versions of the dll.
    have a nice day

    Patzer
    _____________________________
    Philo will never be forgotten

  5. #5
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Method'~' of object '~' failed "

    Method'~' of object '~' failed"
    this usually happens when dll are not registered. Precisely, when the runtime
    is not even able to tell what the object is, and the object is not able to propagate more infos back. It could be any component. It is a mismatched DLL file.
    for example:
    http://support.prtracker.com/pr948.html
    http://support.microsoft.com/default.aspx/kb/270589
    Last edited by Cimperiali; May 19th, 2005 at 07:10 AM.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  6. #6
    Join Date
    Sep 2002
    Location
    England
    Posts
    530

    Re: Method'~' of object '~' failed "

    Hi

    I get this error but not in a compiled program or when running a program from the VB IDE....

    If I click on the VB6 IDE shortcut twice in QUICK succession on my oh-so-low-spec PC at work it gives the same error. So I leave a couple of seconds gap before clicking on shortcut again (click twice cos I'm developing 2 vb dll's and want to open 'em both up).

    I had always assumed that is was because my PC has such a low spec that it can't handle opening up multiple VB IDE's at one time....

    Well, not that this helps your problem but it may be of interest....

    Cheers

  7. #7
    Join Date
    Sep 2001
    Location
    Québec, Canada
    Posts
    1,923

    Re: Method'~' of object '~' failed "

    This error can occrus when you open VB6 or when you load a new project and that the system lack ressources (memory usually). However, I've never saw this on a compiled EXE, but you might want to check if you destroy all your objects and the like, it may be a problem with memory, in such case you could see it from the memory management

    JeffB
    CodeGuru VB FAQ Visual Basic Frequently Asked Questions
    VB Code color Tool to color your VB code on CodeGuru
    Before you post Importants informations to know before posting

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

Featured