Reason for System.Transactions.TransactionInDoubtException

后端 未结 4 1810
一向
一向 2020-12-18 03:04

I have 2 Jobs that read and produce data in a Sql Server Database. Every once in a while the jobs crash with a System.Transactions.TransactionInDoubtException. The exact sta

4条回答
  •  独厮守ぢ
    2020-12-18 03:46

    To add to @BateTech's excellent answer in case this helps someone else, I had to debug exactly the same scenario just as he describes with multiple open async connections occurring in a method. The async calls were being individually awaited, but the method signature itself was 'async void' (!). The key thing about async is that if you're going to do it, you should do it from entry point all the way down.

提交回复
热议问题