G
Guest
Hi All,
I have a .NET data access class that has TransactionOption.RequiresNew attribute set, and one of the functions has AutoComplete attribute set to True. The class is registered as a COM+ serviced component (through regsvcs). This function runs a stored procedure that takes 5 to 10 minutes. Through the profiler, I am able to trace this stored proc to completion. However, when control returns to the .NET function, an error "The root transaction wanted to commit, but transaction aborted" is raised.
1. The timeout is set to 0 (infinite).
2. The stored procedure uses no TRANSACTION statements.
3. There is no SetComplete()or SetAbort() in the code.
4. It runs fine without any errors if I run it from Query Analyzer.
5. It also runs properly if I use a simple SQLCommand without using this class.
Is there anything else I can do to see where the problem is?
Other details:
I am using Framework 1.1 under Windows 2003.
Thanks a ton for your help.
Karun.
I have a .NET data access class that has TransactionOption.RequiresNew attribute set, and one of the functions has AutoComplete attribute set to True. The class is registered as a COM+ serviced component (through regsvcs). This function runs a stored procedure that takes 5 to 10 minutes. Through the profiler, I am able to trace this stored proc to completion. However, when control returns to the .NET function, an error "The root transaction wanted to commit, but transaction aborted" is raised.
1. The timeout is set to 0 (infinite).
2. The stored procedure uses no TRANSACTION statements.
3. There is no SetComplete()or SetAbort() in the code.
4. It runs fine without any errors if I run it from Query Analyzer.
5. It also runs properly if I use a simple SQLCommand without using this class.
Is there anything else I can do to see where the problem is?
Other details:
I am using Framework 1.1 under Windows 2003.
Thanks a ton for your help.
Karun.