using transactionscope in business layer

Nov 18, 2009 at 3:38 PM

i try to use Transactionscope in my application in the business layer. like this :

using (TransactionScope transactionScope = new TransactionScope(TransactionScopeOption.RequiresNew))

                    DataAcess.UpdateEtatTache(idTache, idAgent, EtatExecution.EtatExecutionEnum.Finie);
                    DataAcess.UpdateEtatTache(idTache, idAgent, EtatExecution.EtatExecutionEnum.EnCours);
              catch (Exception ex)
                     throw ex;
but same time i have a blocked state or i have this exception (it is in french): "Tentative de lecture ou d'écriture de mémoire protégée. Cela indique souvent qu'une autre mémoire est endommagée."
do you what is the problem ansd how i can use the TYransactionScope with the entreprise library?
Nov 19, 2009 at 2:23 AM

Do you know what the exception meant?  Anyway, here is a related thread on using TransactionScope...


Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.