NServiceBus: System.Transactions.TransactionException: The partner transaction manager has disabled its support for remote/network transactions

我只是一个虾纸丫 提交于 2019-12-23 20:08:36

问题


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.

Any ideas?


回答1:


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?




回答2:


The problem are (as @skb said) the MSDTC Security settings, and you can find a detailed explanation on how to set this permissions on this MSDN forum response: The partner transaction manager has disabled its support for remote/network transactions.



来源:https://stackoverflow.com/questions/4442227/nservicebus-system-transactions-transactionexception-the-partner-transaction-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!