Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

MSDTC on server 'XXX' is unavailable

$
0
0

I am getting exception "MSDTC on server 'XXX' is unavailable. But I want the solution in which I should not start the DTC service in Control Panel. Is there any way to do this?

public override int ExecuteNonQuery (System.Data.Common.DbCommand command)
{
    int rowsAffected = 0;
    try
    {
       if (m_connection.State != ConnectionState.Open)
       {
           m_connection.Open();
       }
       rowsAffected = base.ExecuteNonQuery(command);
    }
    finally
    {
       m_connection.Close();
    }
    return rowsAffected;
}



Viewing all articles
Browse latest Browse all 31927


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>