TransactionScope Prematurely Completed

前端 未结 7 877
[愿得一人]
[愿得一人] 2020-12-13 02:01

I have a block of code that runs within a TransactionScope and within this block of code I make several calls to the DB. Selects, Updates, Creates, and Deletes, the whole ga

7条回答
  •  猫巷女王i
    2020-12-13 02:37

    This exception can also be caused by disable Microsoft Distributed Transaction Coordinator.

    If we want enable it, we run "dcomcnfg" and select "Component Services" -> "My Computer" -> "Distributed Transaction Coordinator" -> "Local Service DTC" and choose "Properties".

    It should be checked "Allow Remote Client", "Allow Inbound", "Allow Outbound" and "No Authentication Required".

提交回复
热议问题