MobileTech 2022 (9.0)
Breadcrumbs

Microsoft Distributed Transaction Coordinator Fails


Error Message

Description

Fix

Microsoft Distributed Transaction Coordinator (DTC) fails or DTC transactions fail.

If your company is spinning up servers from the same Azure templates, specifically spinning up SQL and MobileTech app server from the same template, in some, or possibly all, circumstances, Microsoft Distributed Transaction Coordinator (DTC) will fail. 

You can catch this specific problem if you ever suspect it is happening (usually when you have confirmed no firewall issues, no non-domain DMZ comm issues, and that components service options have been set), by running DTCPing between both servers. Usually in the log that CID warning will appear.

Uninstall and reinstall DTC on either machine (usually safest to do on the App server). We recommend that you utilize the Powershell cmdlets for uninstall-dtc and install-dtc to do the uninstall/re-install.  

  1. To start a Windows PowerShell session in a Command Prompt window, type PowerShell.

  2. In Windows Powershell, run the following commands:Cmdlet to uninstall DTCUninstall-Dtc -Confirm:$falseCmdlet to install DTCInstall-Dtc -LogPath "C:\Windows\system32\MSDtc" -StartType AutoStartCmlet to configure DTCSet-DtcNetworkSetting -DtcName "Local" -RemoteClientAccessEnabled:$true -RemoteAdministrationAccessEnabled:$true -InboundTransactionsEnabled:$true -OutboundTransactionsEnabled:$true -AuthenticationLevel NoAuth -Confirm:$false

  3. Restart IIS and the DTC service. You may need to reboot the app server.