I'm trying to use TransactionScope
in C #, I'm running tests with local bank, but every time I try to execute some method it returns me this exception:
Partner transaction manager has disabled your support for remote / network transactions. (Exception from HRESULT: 0x8004D025)
I've already enabled the Distributed Transaction Coordinator in Services and Local DTC in Component Services, to no avail.
Part of the code:
try
{
using (var trans = new TransactionScope())
{
while (contadorInicial <= contadorFinal)
{
Objeto.Codigo = contadorInicial.ToString();
_objController.Insert(Objeto);
contadorInicial++;
}
trans.Complete();
return true;
}
}