G
Guest
Hi,
Is there a way to prevent this exception?
"You made a method call on a COM+ component that has a transaction that has
already aborted or in the process of aborting."
I have been using:
System.EnterpriseServices.ServiceDomain.Enter( cfg );
to enter into a COM+ context with a transaction with a low timeout level (on
purpose), then creating an instance of a serviced component like so:
IModify imod = (IModify)Activator.CreateInstance( type );
and that's when I get the exception. Of course if I increase the timeout
level this would away in this experiment, but I need to be able to control
this issue in a production environment when even a large timeout could
timeout.
And, of course, I could catch the exception, but that's not the answer I am
looking for.
Is there no way to query the context to see if it hasn't timed out?
I have used
ContextUtil.IsInTransaction
but it returns true.
Is there a way to prevent this exception?
"You made a method call on a COM+ component that has a transaction that has
already aborted or in the process of aborting."
I have been using:
System.EnterpriseServices.ServiceDomain.Enter( cfg );
to enter into a COM+ context with a transaction with a low timeout level (on
purpose), then creating an instance of a serviced component like so:
IModify imod = (IModify)Activator.CreateInstance( type );
and that's when I get the exception. Of course if I increase the timeout
level this would away in this experiment, but I need to be able to control
this issue in a production environment when even a large timeout could
timeout.
And, of course, I could catch the exception, but that's not the answer I am
looking for.
Is there no way to query the context to see if it hasn't timed out?
I have used
ContextUtil.IsInTransaction
but it returns true.