Solved

Method '~' of Object '~' failed Error

Posted on 2001-06-20
11
393 Views
Last Modified: 2013-11-25
I'm facing the error mentioned at this question title.
I have a COM+ component that is called from an ASP page, when I call a method of the component and an error occurs, the error information is not passed to the page. The component try to call Err.Raise with the error description but the page receives that message.

At MSDN there is an article to fix this bug, but it didn't work with me:

http://support.microsoft.com/support/kb/articles/Q264/7/01.ASP

Apparently it has some relation with functions that pass ado recordsets by reference. I don't know how to solve this.
0
Comment
Question by:RobertoTY
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6211941
It sounds like you do not have the correct ADO version installed on the server.  In other words your COM+ component may be referencing a different version of ADO than what is on the server.

I suspect the error is raised when you create the first ADO object in your COM component.

The solution is to make sure to install the same Mdac_type.exe on the server that was used to develop the COM component (or vice versa).

Hope this helps.
0
 

Author Comment

by:RobertoTY
ID: 6212106
All the envirorment is at my workstation. The sql server, iis and com+ components.

I don't think it is a MDAC version problem. I've applied sp3 of sql7 and sp2 of win2k and the problem still persists.
0
 
LVL 3

Expert Comment

by:Hornet241
ID: 6212145
I have had this error before with a Com object(DLL) in Com+ and found that when I remove the DLL from the Com+ application it works flawlessly.  I haven't had the chance to research the problem(I did not write the DLL), but I am pretty sure the DLL was not designed properly for Com+.  

This DLL does not use any Database references and I pass only strings to it and receive a Long value as return.

0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6212288
Sp has nothing to do with!
If you were installed your component through P&DW, do this:
Search on your HD for the same SP that you have installed on Development machine.
There is two files (i am not sure), mdactyp.exe and a cab file with the same name.
Take both and install on server AGAIN.
SP are applied to programs but, for a strange reason, it didn't applies for P&DW.
Good luck
0
 

Author Comment

by:RobertoTY
ID: 6212354
Richie,
I think you did not read the article i put in my question. Microsoft says that you should apply the last sps for mdac and win2k to solve the problem.

I didnt understand what you meant with P&DW
0
 

Expert Comment

by:mpaul4u
ID: 6212957
hi,
THE ANSWER IS THAT the
Check the component IN MTS property+TRANSACTION MODE.
if part of transaction make sure that MSDTC service is started.This is problem with Transactions.
regards
Martin
0
 
LVL 9

Expert Comment

by:Valliappan AN
ID: 6217777
RobertoTY,

Just check if you have all objects in the database part.

Since, just now, we faced the same error, in SQL 2000, in our VB application. Then found, that tables was missing.

Could it be a similar reason, in your case?

Cheers.
0
 

Author Comment

by:RobertoTY
ID: 6218652
MSDTC service is already running in my machine. I've tried some test with the service started and running and saw no difference.
0
 
LVL 9

Expert Comment

by:Valliappan AN
ID: 6218912
RobertoTY,

Did you check with the tables, fields, other objects etc. in your database part?

Try, may be like this, running a specific part of the ado recordset references, in a separate one, and check if you get the same error.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7139615
Hi RobertoTY,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Save as PAQ -- No Refund.

EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 7173341
Question placed in PAQ

Computer101
E-E Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to debug this code 7 65
maro to copy and paste from one worksheet to another based on a condition 11 70
Hide vba in gp 7 127
Set email body to html using vbscript 6 96
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

751 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