erro do TransactionScope do asp.Net
Aqui está minha codificação
using (TransactionScope scope = new TransactionScope())
{
using (DataAccess.Document Access = new DataAccess.Document())
{
if (toSave.Document.Rows.Count > 0)
{
Access.SaveDocument(docToSave);
}
if (toUpdate.Document.Rows.Count > 0)
{
Access.UpdateEachDocument(docToUpdate);
}
}
scope.Complete();
}
aqui está o erro
ExecuteNonQuery requer uma conexão aberta e disponível. O estado atual da conexão está fechado.
Document é uma classe e existem métodos de salvar e atualizar documentos l
If I comment the transactionScope, I get no errors.
O que há de errado