MSDTC exception

I got the following exception in my application once,

Unable to get the distributed transaction coordinator address for the server from the server. Is DTC enabled on the server?

Now I need to catch and handle the exception, but I am not able to throw the exception. can anyone provide me with information on how to throw an exception or provide code like exception / error.

Since I did not receive the exception log, I was unable to get the exception / error type code.

EDIT

I tried the following scripts,

  • Scenario - when the DTC service is stopped Error message

    "MSDTC on server" MyServ \ SQL2005 "is not available." -

  • Scenario - When Network Access Is Disabled for DTC in DATABASE Database Error Message

    "Partner Transaction Manager has disabled remote / network transaction support."

  • Scenario - When Network Access Is Disabled for DTC on the Application Server Error Message

    "Transaction Manager has disabled remote / network transaction support."

  • Also, trying to stop netbios in the application server / web server, I get the following error:

    The MSDTC Transaction Manager was unable to pull a transaction from the source transaction manager due to communication problems. Possible reasons: there is a firewall and it does not have an exception for the MSDTC process, both machines cannot find each other by NetBIOS names or network transaction support is not enabled for one of the two transaction managers.

Stoppin also tried using SQL Server and MSDTC. And then started the SQL server before running MSDTC. But I could not reproduce the error message that I need.

+7
source share
1 answer

This can happen if the IP address of the server is updated during transaction processing.

This can also happen if the DTC service starts after the SQL service, but you tried to do this, so I assume that it is not.

Source: http://social.msdn.microsoft.com/Forums/en-US/windowstransactionsprogramming/thread/c13d076d-e20c-421c-821f-a26bbae97a6a/

+2
source

All Articles