p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_components thread: Method '~' of Object '~' failed


Message #1 by Christian Cruz <chris_cruz1@y...> on Wed, 27 Mar 2002 12:04:16 -0800 (PST)

Anyone knows what this error means?

-2147164157  Method '~' of Object '~' failed 

I am using Windows 2000 and IIS5.
I am calling a VB6 component from an Asp page.  The VB
component is in MTS.  suddenly I start getting this
error.

thanks

Chris


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
Message #2 by "Lewis, James" <James.Lewis@i...> on Wed, 27 Mar 2002 13:08:49 -0700
Run "errlook", type in the hex equivalent code for this error 
"0x8004E003"
and this is what you get:

You made a method call on a COM+ component that has a transaction that 
has
already aborted or in the process of aborting.

-----Original Message-----
From: Christian Cruz [mailto:chris_cruz1@y...]
Sent: Wednesday, March 27, 2002 1:04 PM
To: ASP components
Subject: [asp_components] Method '~' of Object '~' failed




Anyone knows what this error means?

-2147164157  Method '~' of Object '~' failed

I am using Windows 2000 and IIS5.
I am calling a VB6 component from an Asp page.  The VB
component is in MTS.  suddenly I start getting this
error.

thanks

Chris


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards=AE
http://movies.yahoo.com/


%%email.unsub%%

Message #3 by Christian Cruz <chris_cruz1@y...> on Wed, 27 Mar 2002 12:23:07 -0800 (PST)
I didnt mention that when I debug it (run the site
with the VB project running), I don't get the error.

I searched for the error number (-2147164157) in
microsoft's support page and got nothing.

I did another search and got this page:

http://www.tek-tips.com/gviewthread.cfm/lev2/4/lev3/30/pid/330/qid/184676

but they mention installing win2k SP2 and I do have
that.



--- "Lewis, James" <James.Lewis@i...> wrote:
> Run "errlook", type in the hex equivalent code for
> this error "0x8004E003"
> and this is what you get:
> 
> You made a method call on a COM+ component that has
> a transaction that has
> already aborted or in the process of aborting. 
> 
> -----Original Message-----
> From: Christian Cruz [mailto:chris_cruz1@y...]
> Sent: Wednesday, March 27, 2002 1:04 PM
> To: ASP components
> Subject: [asp_components] Method '~' of Object '~'
> failed
> 
> 
> 
> 
> Anyone knows what this error means?
> 
> -2147164157  Method '~' of Object '~' failed 
> 
> I am using Windows 2000 and IIS5.
> I am calling a VB6 component from an Asp page.  The
> VB
> component is in MTS.  suddenly I start getting this
> error.
> 
> thanks
> 
> Chris
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
> 
>  
> james.lewis@i...
> %%email.unsub%%
> 
> 
> 
> chris_cruz1@y...
> %%email.unsub%%
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
Message #4 by "Lewis, James" <James.Lewis@i...> on Wed, 27 Mar 2002 16:04:18 -0700
Hi Christian. You definitely need to convert that error value into it's hex
equivalent in order to discover the reason for the error. VB is too silly to
interpret an HRESULT as a hex number directly, so you have to perform that
conversion yourself. Either type -2147164157 into the windows calculator,
then choose the "hex" radio button and the lowest 8 numbers are the HRESULT
you are looking for, or use the VB HEX function. Either way, -2147164157
turns into the hex equivalent 0x8004E003. If you look that error up in
errlook, or winerror.h, you find this:

WinError.h:

//
// MessageId: CONTEXT_E_ABORTING
//
// MessageText:
//
//  You made a method call on a COM+ component that has a transaction that
has already aborted or in the process of aborting.
//
#define CONTEXT_E_ABORTING               _HRESULT_TYPEDEF_(0x8004E003L)


There are a variety of sights with info on this. For example:

http://faqchest.dynhost.com/msdn/JCOM/jcom-99/jcom-9907/jcom99071700_09717.h
tml


This sight suggests:

"...appear in the calling thread if your server request is interrupted i.e.
your MTS server package process is shut down. I have never received this
exception in any other context."


Microsoft documents this error further in a number of articles:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q285147

"When a Windows Script Components (WSC) component is configured under COM+,
COM+ controls the script component. When the script aborts a transaction and
then throws an error, an access violation occurs. This problem only occurs
when JScript is the scripting language and the transaction attribute is set
to Required."

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q275293
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q271675


The common thing here seems to be that the MTS process is terminating, or
the component is throwing an exception (which is causing MTS to errantly
return it's  "run home to mama" error of -2147164157), or the site is using
JScript.

No matter what, you should absolutely ensure that you're 2k box has the
latest critical updates. Just go to the start menu, select "Windows Update"
and then choose "product updates" and install all the critical stuff! Even
if you think you have everything, try the site anyway....
(http://windowsupdate.microsoft.com/)

J



-----Original Message-----
From: Christian Cruz [mailto:chris_cruz1@y...]
Sent: Wednesday, March 27, 2002 1:23 PM
To: ASP components
Subject: [asp_components] RE: Method '~' of Object '~' failed



I didnt mention that when I debug it (run the site
with the VB project running), I don't get the error.

I searched for the error number (-2147164157) in
microsoft's support page and got nothing.

I did another search and got this page:

http://www.tek-tips.com/gviewthread.cfm/lev2/4/lev3/30/pid/330/qid/184676

but they mention installing win2k SP2 and I do have
that.



--- "Lewis, James" <James.Lewis@i...> wrote:
> Run "errlook", type in the hex equivalent code for
> this error "0x8004E003"
> and this is what you get:
> 
> You made a method call on a COM+ component that has
> a transaction that has
> already aborted or in the process of aborting. 
> 
> -----Original Message-----
> From: Christian Cruz [mailto:chris_cruz1@y...]
> Sent: Wednesday, March 27, 2002 1:04 PM
> To: ASP components
> Subject: [asp_components] Method '~' of Object '~'
> failed
> 
> 
> 
> 
> Anyone knows what this error means?
> 
> -2147164157  Method '~' of Object '~' failed 
> 
> I am using Windows 2000 and IIS5.
> I am calling a VB6 component from an Asp page.  The
> VB
> component is in MTS.  suddenly I start getting this
> error.
> 
> thanks
> 
> Chris
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
> 
>  
> james.lewis@i...
> %%email.unsub%%
> 
> 
> 
> chris_cruz1@y...
> %%email.unsub%%
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

 
%%email.unsub%%


  Return to Index