.NETGURU
COM+ problem - components get stucked
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.component_services.

Post a new message to this list...

normalek@yahoo.com
Hi,
I have the following problem: from time to time my com+ package just
stops responding. In com+ management console I can see that activation
time of some components is huge and is increasing forever. There are
no exception reported, neither applicative nor system. There are no
database deadlocks as well. More interesting - there are also no
errors about failure on creation of new component. It looks like com+
just stops responding to calls in this situation. After manual
shutdown of com+ package it resumes to work just fine.

The server is written in C# using Enterprise Services, and objects are
disposed and pooled properly. It happens both on W2K and 2003 server
machines.

Question 1 - does anybody experienced something like this?
Question 2 - is there a way to limit the activation time for
components? I can limit a transaction or object creation timeout, but
looks like there is no option for forcefull termination of "stucked"
component.

TIA
Reply to this message...
 
    
Gareth
Question 1 - does anybody experienced something like this?
Yes; c# Serviced Component running on a W2K box accessing a SQLServer
on a 2003 machine. If Trasactions are set to Required or Requires new
the object instantiates and hangs around until I shut down the
package. No processor usgaes, no db deadlock. The last command
issued to the db is sp_reset_connection (this happens when the
connection is opened). If I run the components on a 2003 box (or the
same box as the db - not sure which) I don't get the problem. If
transactions are turned off (i.e. Supports Transaction) - no problem.

Question 2 - is there a way to limit the activation time for
components?
Don't know!
Reply to this message...
 
    
Petrus Evangelista
To fix this issue, at the end of methods call this.dispose().
--------------------------------
From: Petrus Evangelista
Reply to this message...
 
    
Jim Hsu
seeing the same situation in my COM+ / C# Service Components.
but it's only happend about once a week on a heavy loaded system.

I'ts mission critical , appreicate if a way to fix this,
MS should make this combination rock solid and very helpful in trouble
shooting as it's in the enterprise mission critical spectrum...

in the following eventLog, the client is vb6 calling C# serviced
components...

"Event Type: Error
Event Source: VBRuntime
Event Category: None
Event ID: 1
Date: 8/26/2004
Time: 2:49:30 PM
User: N/A
Computer: EAI-SRV3
Description:
The VB Application identified by the event source logged this Application
MsgHandler: Thread ID: 4444 ,Logged: SubmitMsg - Exception - Err.Number
= -2147164124, Err.Description = Automation error
COM+ activation failed because the activation could not be completed in the
specified amount of time.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
"
J

"Gareth" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Steven
This happens if you don't release components

Look into:
ServicedComponent.Dispose()

Dispose() method

or if in C#, the "using" statement.

"Jim Hsu" <Click here to reveal e-mail address> wrote in message
news:%Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Jim Hsu
Of course I did !! :-)
but it seems I did it in a inperfect way.
1. my client is alwasy vb.
2. I have Log4Net wrapper inside the clean up code, It seems the
un-predicability of finalizing order , will sometimes disable my
Dispose()....

the Using statement seems cool, but I find it not that hany since it has a
"style" to apply in your code... appreciate if someone can have a "how to
apply using in your C# code" courseware...

:-)

"Steven" <Click here to reveal e-mail address> wrote in message
news:uqU%Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.EnterpriseServices.ServicedComponent




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification