Solved

Method '~' of Object '~' failed Error

Posted on 2001-06-20
11
383 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

707 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

12 Experts available now in Live!

Get 1:1 Help Now