PC Review


Reply
Thread Tools Rate Thread

COM+ activation error

 
 
Vidhya
Guest
Posts: n/a
 
      20th Aug 2003
Hi,
Please direct me to an appropriate newsgroup if this is
not the right place for my question.

I installed a .NET application (servicedcomponents) in
COM+. The component is setup for object pooling (min 2,
max 5). I get the following error after making a few
calls to the COM+ component. Initial few calls are
successful. I am not sure what I need to do to prevent
this.

ExceptionType:COMException
HRESULT: -2147164124
Description:COM+ activation failed because the activation
could not be completed in the specified amount of time.

Please let me know if more information is required.

Thanks,
Vidhya
 
Reply With Quote
 
 
 
 
Tomas Restrepo \(MVP\)
Guest
Posts: n/a
 
      22nd Aug 2003
Vidha,

> Please direct me to an appropriate newsgroup if this is
> not the right place for my question.
>
> I installed a .NET application (servicedcomponents) in
> COM+. The component is setup for object pooling (min 2,
> max 5). I get the following error after making a few
> calls to the COM+ component. Initial few calls are
> successful. I am not sure what I need to do to prevent
> this.
>
> ExceptionType:COMException
> HRESULT: -2147164124
> Description:COM+ activation failed because the activation
> could not be completed in the specified amount of time.


Sounds like you're not properly releasing objects (by disposing them or
calling ServicedComponent). This is critical with pooled components, because
if you max out the number of object instances, then further activations will
wait until at least one of them is released or untilk a given timeout (which
is what's happening to you, form what it looks like).

One easy way to diagnose this is to enable events and statistics on the
component (by using the EventTrackingEnabled attribute or setting the option
in the COM+ component services MMC snapin, and then see how activations are
behaving.

--
Tomas Restrepo
(E-Mail Removed)


 
Reply With Quote
 
Vidhya
Guest
Posts: n/a
 
      22nd Aug 2003
Tomas,
Thanks for the response.

I changed the code to release the objects. Everything is
working good now when I am using a .NET client
application running in the same machine as the server. I
still have the same issue when I try to release the
objects from a VB client. I have a VB6 client, a
small .NET remoting client serving objects to the VB
client, a publisher application on the server that
publishes the serviced component for remoting. The VB
Client uses interop to communicate to the
servicedcomponent and the .NET client that serves the
objects. The .NET client has the code to release the
serviced component. Do you see anything wrong with our
approach? Could you suggest something?

Thanks,
Vidhya
>-----Original Message-----
>Vidha,
>
>> Please direct me to an appropriate newsgroup if this is
>> not the right place for my question.
>>
>> I installed a .NET application (servicedcomponents) in
>> COM+. The component is setup for object pooling (min 2,
>> max 5). I get the following error after making a few
>> calls to the COM+ component. Initial few calls are
>> successful. I am not sure what I need to do to prevent
>> this.
>>
>> ExceptionType:COMException
>> HRESULT: -2147164124
>> Description:COM+ activation failed because the

activation
>> could not be completed in the specified amount of time.

>
>Sounds like you're not properly releasing objects (by

disposing them or
>calling ServicedComponent). This is critical with pooled

components, because
>if you max out the number of object instances, then

further activations will
>wait until at least one of them is released or untilk a

given timeout (which
>is what's happening to you, form what it looks like).
>
>One easy way to diagnose this is to enable events and

statistics on the
>component (by using the EventTrackingEnabled attribute

or setting the option
>in the COM+ component services MMC snapin, and then see

how activations are
>behaving.
>
>--
>Tomas Restrepo
>(E-Mail Removed)
>
>
>.
>

 
Reply With Quote
 
RedSunBeer
Guest
Posts: n/a
 
      17th Sep 2003
Hello,
i faced a similar problem recently. it was because i had
already made com+ service to run. to solve this i deleted
the service and ran the application again and it
reinstalled the com+ service and worked.

another possibility could be wether it is a library
activated service or a server activated service. u need to
make the right choice depending upon the kind of service u
would need.

cheers,
RedSunBeer

>-----Original Message-----
>Check the assemblies called by the serviced component. On

Windows 2000, you
>have to strongly name these assemblies and cram them into

the COM+ as well
>(or at least into the GAC).
>
>--
>Gregory A. Beamer
>MVP; MCP: +I, SE, SD, DBA
>Author: ADO.NET and XML: ASP.NET on the Edge
>
>**********************************************************

******************
>****
>Think Outside the Box!
>**********************************************************

******************
>****
>"Vidhya" <(E-Mail Removed)> wrote in message
>news:044601c36758$0a5e21b0$(E-Mail Removed)...
>> Hi,
>> Please direct me to an appropriate newsgroup if this is
>> not the right place for my question.
>>
>> I installed a .NET application (servicedcomponents) in
>> COM+. The component is setup for object pooling (min 2,
>> max 5). I get the following error after making a few
>> calls to the COM+ component. Initial few calls are
>> successful. I am not sure what I need to do to prevent
>> this.
>>
>> ExceptionType:COMException
>> HRESULT: -2147164124
>> Description:COM+ activation failed because the

activation
>> could not be completed in the specified amount of time.
>>
>> Please let me know if more information is required.
>>
>> Thanks,
>> Vidhya

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Activation error =?Utf-8?B?S2Vu?= Windows Vista Installation 2 21st Aug 2007 11:47 AM
error code 0xc004c015 the activation server experienced an error =?Utf-8?B?em9tYml4?= Windows Vista Installation 8 17th Feb 2007 03:01 AM
Activation Error Ricci Hammond Windows Vista General Discussion 5 7th Jun 2006 11:51 AM
3 Days After Activation I'm getting Activation Error with no fix.. =?Utf-8?B?RGF2aWQ=?= Windows XP Help 8 16th Mar 2006 02:22 PM
Activation error Pierre Windows XP General 3 3rd Dec 2003 08:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:18 PM.