Posts

Showing posts from November, 2012

NServiceBus and Distributed Transaction Coordinator(DTC)

Image
In my recent project I was using NServiceBus for communicating through messaging across different services. Though I had implemented a number of handlers before and deployed them on a remote server but didn't experienced the DTC issue until I tried to access a database server on a machine that is different from the one where the transactional handler service was deployed. NServiceBus uses Distributed Transaction Coordinator for managing the messages in queue and to make it working its important to make sure that MSDTC running on both machines are configured correctly. Otherwise it would throw the following exception as it was in my case:   System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServices.COMException: The MSDTC transaction manager was unable to push the transaction to the destination transaction manager due to communication problems. Possible causes are: a ...