The below code starts the MSDTC service on the local machine if it's currently "Stopped" You need to reference the System.ServiceProcess assembly using(var msDtcSvc = new System.ServiceProcess.ServiceController("MSDTC")) { if(msDtcSvc.Status == System.ServiceProcess.ServiceControllerStatus.Stopped) { msDtcSvc.Start(); } } ...

Yes, it would. Which is why it shares them with you instead. NServiceBus expose these to you in the message handlers so you can reuse them and avoid the escalation. Simply take a dependency on NHibernateStorageContext in your message handler constructor and it gives you access to the correct NHibernate.ISession...

After many days losing my hair, here is what worked for me, in case someone needs it. First I disabled automatic 6to4 address generation. 1. Open Command 2. Type the command `netsh interface 6to4 set state disabled` Then I restricted the DCOM port range on both machine 1. Start ->...

To enable MSDTC on the business management server that is running on Windows Server 2008 Click Start, click Run, type dcomcnfg and then click OK to open Component Services. In the console tree, click to expand Component Services, click to expand Computers, click to expand My Computer, and click to...

I was able to replicate this locally and it happens because the other application has exited before the parent process has committed the transaction. The other applications must continue running until the parent commits or rolls back the transaction. One way of doing this is preventing the applications from exiting...