cancel
Showing results for 
Search instead for 
Did you mean: 

Nhibernate with DTC

Former Member
3,481

I have a project made using nhibernate and Distributed Transaction Coordinator(MSDTC), I have this "uid=DBA;pwd=sql;DBF={0};AutoStop=No;POOLING=false;start=dbsrv11 -c 32M -tmf -tmt 20" as my connection string, but when i run several tests that have a transaction, it throws the following error:

*System.Exception: Exception Encapsulada via Mock. ---> NHibernate.Exceptions.GenericADOException: could not load an entity: [Plutus.Dominio.Entidades.Agencia#5][SQL: SELECT agencia0_.Id as Id14_0_, agencia0_.Ativo as Ativo14_0_, agencia0_.Nome as Nome14_0_, agencia0_.NumeroAgencia as NumeroAg4_14_0_, agencia0_.NumeroAgenciaDV as NumeroAg5_14_0_, agencia0_.BancoEmpresa_Id as BancoEmp6_14_0_ FROM Agencias agencia0_ WHERE agencia0_.Id=?] ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.*

When i run the same tests without transaction, it doesn't throws any error.

What can I do to fix it?

Breck_Carter
Participant
0 Kudos

Did you find any answer? If so, please post it here. Thanks!

Former Member
0 Kudos

Not yet, this project is frozen.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

I would suggest that you pose your question in the NHibernate forums or on the main StackExchange site. Be prepared to present diagnostic information (NHibernate build, stack traces, and the like).