Are there any tips, tricks or methods for obtaining profiling/logging/debug information on the runtime behaviour of System.Transactions.TransactionScope?
I have an application which is committing data to the database, even though I’m using System.Transactions.TransactionScope, where an exception is thrown and TransactionScope.Commit() is never called.
I was wondering if there are events or details on other classes used by TransactionScope that I can query at runtime to establish whether my commands (typed data adapters) are enlisting the ambient transaction or not.
Having looked at System.Transactions.dll using Reflector, I think the System.Transactions.Diagnostics namespace might help, but any examples would be much appreciated.
Check-out this article: Link
Add following info to your application config file to trace System.Transactions calls
MORE INFO:
once you got trace file, you can open the trace in SvcTraceViewer.exe
You can enable MSDTC transaction trace,CM trace to know more about transaction also
Reference: