在我的代碼中,我試圖使用TransactionScope與實體框架的事務。在這個事務中,我們打開一個定期的SQL連接到一個單獨的服務器和數據庫。當conn.Open()被調用,我們得到一個 錯誤:MSDTC和多個數據庫與實體框架
"Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC for network access in the security configuration for MSDTC using the Componet Services Administrative tool."
但是,MSDTC被啓用並在服務器上運行。
儘管兩個SQL服務器都已啓用,但MSDTC選項卡下的安全配置未啓用網絡事務,一旦我們知道它只是打開了端口並且它工作正常! – 2010-08-05 20:52:02