围炉网

一行代码,一篇日志,一个梦想,一个世界

Communication with the underlying transaction manager has failed.

环境:bx11, bx12 在workgroup 中

app 在domain中

app中使用 TransactionScope对db1, db2 进行访问时抛出异常

The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers. (Exception from HRESULT: 0x8004D02B)

解决方法:

1. 确保防火墙已针对msdtc添加了例外 Control Panel\All Control Panel Items\Windows Firewall\Allowed Programs     Distributed Transaction Coordinator

2. 在Local DTC Properties -> Transaction Manager Communication 设置成No Authentication Required

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

沪ICP备15009335号-2