Advanced System.Transactions debugging

不羁的心 提交于 2019-12-06 03:02:46
Ivan Zivkovic

Check-out this article: http://blogs.msdn.com/b/madhuponduru/archive/2008/02/18/system-transactions-trace.aspx

Add following info to your application config file to trace System.Transactions calls

<configuration>
 <system.diagnostics>
  <sources>
   <source name="System.Transactions" switchValue="Information">
   <listeners>
    <add name="tx" type="System.Diagnostics.XmlWriterTraceListener" initializeData= "tx.log" />
   </listeners>
  </source>
 </sources>
</system.diagnostics>

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:

Are you creating a transaction scope with parameters?

This behaviour would be expected for transaction scope option of Supress.

Otherwise could you post some code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!