Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 456
  • Last Modified:

MTS: Method '~' of object '~' failed...pls help....

I have use VB6 to write my MTS component objects and user interface.
Everything runs well when I register all the objects in my local PC and
access it from my EXE user interface........
However, after I install the objets into the MTS and deploy the package into
my client PC, an error sounds : Method '~' of object '~' failed. is
raised....
The strange thing is this is only happen to certain objects.....
I have do some debugging and I have found that the error is raised whever
the calling method instantiate an object (any object)........ I have test
the calling object and it works fine since other object can instantiate it
and use it without problem.......
I wonder how this could happen and look for your help.......
Thanks in advance........
0
yuanwuhui
Asked:
yuanwuhui
  • 3
  • 2
  • 2
  • +2
1 Solution
 
rovermCommented:
What network environment are you running?
Did you install DCOM for win95.
Did you use the config utility for DCOM.
Did you set the security for MTS and for the component and for the client ?

D'Mzzl!
RoverM
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
When creating other objects inside MTS, use "Context".CreateInstance instead of CreateObject.
NOTE: With MTS 2 (included in W2K), this has been changed
0
 
yuanwuhuiAuthor Commented:
Adjusted points from 285 to 385
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
yuanwuhuiAuthor Commented:
hi roverm, thanks for your comment....
fyi, i export the package of my components from MTS to my client PC, i think this will establish the DCOM between my MTS server and my client PC, if i am not mistaken....
besides, i didn't set any security for my component since i am doing the access control in the UI......
please advise....
thank you....
0
 
yerffoegCommented:
See both MS Articles:

Q194751 - which has a download that fixes these errors caused by a few bad registry settings

Q192135 - a bug report about opening multiple instances of VB but the above one should solve most of you problems.

To find the articles goto

http://www.microsoft.com

click on support and then search.

I have given links below but they may not work if you aren't an MSDN Member.

Q194751
http://support.microsoft.com/support/kb/articles/Q194/7/51.ASP

Q192135
http://support.microsoft.com/support/kb/articles/Q192/1/35.ASP
0
 
u4jefCommented:
I am experiencing exactly the same problems. Can't see how running the download on the development machine (with VB Enterprise installed) will solve the problem experienced on the client machine (no VB, runs the .exe). Any more info?
0
 
yerffoegCommented:
Where/Are you at Liverpool University by any chance?

This problem is caused by incorrect or corrupt registry settings for ActiveX DLLs (usually ActiveX Controls).
This download won't necessarily fix your problem if it is caused by a VB Exe.

Do it work on all client machines bar this one?

I assume it works on the Dev machine, have you compared versions of the DLLs and other components the DLL relies on?

Have you looked at the links above?
There is another Article on MSDN that discusses these errors.

Dave.
0
 
u4jefCommented:
Thanks for getting back to me - I'll give the problem another look later on. Yes, I was at Liverpool University until summer '98.
0
 
yerffoegCommented:
No problem. I was a u2, but finished with the u3 year in 96, so I guess we were there at around the same time.
I am surprised you're still using the u4
username but that's what gave it away.

u2dgl
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now