NServiceBus:System.Transactions.TransactionException:合作伙伴事务管理器已禁用对远程/网络事务的支持 [英] NServiceBus: System.Transactions.TransactionException: The partner transaction manager has disabled its support for remote/network transactions
问题描述
当我尝试从 IHandleMessages 实现的 Handle(T value) 方法中将记录保存到数据库时,我的 订阅者 收到此异常.有谁知道为什么会这样?我想我记得 NServiceBus 使用分布式事务来使消息处理成为事务性的,但我不知道为什么在两台机器上运行RunMeFirst.bat"文件后它不只是工作".
I am getting this exception on my subscriber when I try to save a record to a database from within my Handle(T value) method in my IHandleMessages implementation. Does anyone know why that would happen? I think I remember that NServiceBus uses distributed transactions to make the handling of messages transactional, but I have no idea why it doesn't just "work" after running the "RunMeFirst.bat" file on both machines.
有什么想法吗?
推荐答案
找到了答案.看起来我需要在 MSDTC 安全设置下启用允许入站"选项.有谁知道为什么 RunMeFirst.bat 没有设置这个?
Found the answer. It looks like I needed to enable the "Allow Inbound" option under MSDTC Security settings. Does anyone know why the RunMeFirst.bat doesn't set this?
这篇关于NServiceBus:System.Transactions.TransactionException:合作伙伴事务管理器已禁用对远程/网络事务的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!