Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException on ReliableAdoTransaction.ExecuteWithRetry #34

Open
marcelom2s opened this issue Jul 22, 2020 · 0 comments
Open

Comments

@marcelom2s
Copy link

When I add the following code:

.ExposeConfiguration(c => c.SetProperty(NHCfg.Environment.TransactionStrategy, typeof(ReliableAdoNetWithDistributedTransactionFactory).AssemblyQualifiedName))

to the Fluently.Configure().

I start having this error below:

[NullReferenceException: Object reference not set to an instance of an object.]
NHibernate.SqlAzure.ReliableAdoTransaction.ExecuteWithRetry(ReliableSqlDbConnection connection, Action action) +41
NHibernate.SqlAzure.ReliableAdoTransaction.Begin(IsolationLevel isolationLevel) +91
NHibernate.SqlAzure.ReliableAdoTransaction.Begin() +8
NHibernate.Impl.SessionImpl.BeginTransaction() +314

I use NHibernate 4.1.2.4000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant