How to use TransactionScope in C#?

前端 未结 7 1102
猫巷女王i
猫巷女王i 2020-11-29 23:55

I am trying to use TransactionScope, but keep getting the exception below.
The app is running on a different machine than the database, if that matters. I

7条回答
  •  盖世英雄少女心
    2020-11-30 00:24

    Control Panel - Administrative Tools - Component Services - My Computer properties - MSDTC tab - Security Configuration tab - Network DTC Access (checked) / Allow Remote Clients (checked) / Allow Inbound (checked) / Allow Outbound (checked) / Enable TIP Transactions (checked)

    Reboot computer.

提交回复
热议问题