i am using TransactionScope
Class provided by .Net
However when i try to open connection it throws below exception.
{System.Runtime.InteropServices.COMException (0x8004D01B): The Transaction Manager is not available. (Exception from HRESULT: 0x8004D01B)
Here is my code..
using (TransactionScope scope = new TransactionScope())
{
using (OleDbConnection connection1 = new OleDbConnection("Provider=MSDAORA.1;User ID=oratest2;Password=oratest2;Data Source=dr;Persist Security Info=False"))
{
// Opening the connection automatically enlists it in the
// TransactionScope as a lightweight transaction.
connection1.Open(); // here it throws exception
}
}
User contributions licensed under CC BY-SA 3.0