Solved

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

Posted on 2000-03-17
9
447 Views
Last Modified: 2013-11-25
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
Comment
Question by:yuanwuhui
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 12

Expert Comment

by:roverm
ID: 2627398
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
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2627685
When creating other objects inside MTS, use "Context".CreateInstance instead of CreateObject.
NOTE: With MTS 2 (included in W2K), this has been changed
0
 

Author Comment

by:yuanwuhui
ID: 2630413
Adjusted points from 285 to 385
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:yuanwuhui
ID: 2630423
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
 
LVL 1

Accepted Solution

by:
yerffoeg earned 385 total points
ID: 2635445
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
 

Expert Comment

by:u4jef
ID: 3164130
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
 
LVL 1

Expert Comment

by:yerffoeg
ID: 3165184
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
 

Expert Comment

by:u4jef
ID: 3172616
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
 
LVL 1

Expert Comment

by:yerffoeg
ID: 3173764
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hide vba in gp 7 104
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 54
Create Files based on Cell Values in a Range in Excel 12 43
Export Data to Different .csv Files 26 114
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question