I got the following exception in my application once,
Unable to get the address of the distributed transaction coordinator for the server, from the server. Is DTC enabled on the server?
Now I need to catch and handle the exception, but not able to reproduce the exception. could any one provide me inputs on how to reproduce the exception or provide the exception type/error code.
Since I didn't get the exception log, I was not able to get the exception type/error code.
EDIT
I tried the following scenarios,
Scenario - when the DTC service is stopped Error Message
"MSDTC on server 'MyServ\SQL2005' is unavailable." -
Scenario - When the network access is disabled for the DTC in DATABASE SERVER Error Message
"The partner transaction manager has disabled its support for remote/network transactions."
Scenario - When the network access is disabled for the DTC in the application server Error Message
"The transaction manager has disabled its support for remote/network transactions."
Also tried by stopping the netbios in app server/webserver, then i get the following error,
The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers.
Also tried by Stoppin the SQL server and MSDTC services. And then started the SQL server before starting the MSDTC. But couldn't reproduce the error message I required.