Results 1 to 4 of 4

Thread: Method '~' of object '~' failed

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    285

    Method '~' of object '~' failed

    I have a vb6 application which does work from a long time. But in some customer PC(windows xp) while running my application error comes like "Method '~' of object '~' failed". This error comes in all procedures where i use filesystem object. So i think it is due to SCRRUN.DLL. When i check the customer PC the scrrun.dll version was 5.7.0.18066.
    But i was using 5.7.0.16599. So i was thinking like it may be due to version difference(but pc with error has higher version). But while running same application as run as administrator it worked without any error!! .Also the user was already administrator. (so it may not be due to version difference) .Also my application works in all Windows OS in both admin and user account. So now i am confused what may be the reason causing this error in some PC's.

  2. #2
    Hyperactive Member Lenggries's Avatar
    Join Date
    Sep 2009
    Posts
    353

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

    When in doubt, reboot the machine. If that doesn't work, re-register the DLL.

  3. #3
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    5,652

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

    Really need more information. Is this error reproducible by following certain steps? Sounds like it might be a permissions thing.

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

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

    I'd guess somebody had used a cruddy "No-no Setup" installer for another application and they foolishly tried to deploy SCRRUN.DLL which they shouldn't have anyway.

    This installer probably put a copy somewhere funky like the app's Program Files folder, registered it there by brute force. This may or may not have worked since these libraries are not meant for naked deployment like this.

    Somewhere along the line this funky copy got deleted (poorly written uninstall?) and now the registry entries are orphaned pointing to nothing.


    I've had to help a lot of users fix their machines after some "No-no" setup had been used to install then uninstall somebody else's program. The only way to fix it for something like SCRRUN.DLL is to get a clean copy off another machine with the same Windows version installed, copy that where it belongs, then reregister it by hand.

    Luckily Vista and later are better about protecting themselves from such shenanigans attempted against system DLLs than ancient versions of Windows were.

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