Solved

Method '~' of Object '~' failed Error

Posted on 2001-06-20
11
388 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 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…
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…

809 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