using transactionscope in business layer

Nov 17, 2009 at 6:18 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 18, 2009 at 1:05 AM

You want to post this in the Enterprise Library dicussion forum.