Solved

Method '~' of Object '~' failed Error

Posted on 2001-06-20
11
385 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
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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now