Hello,
I am trying to connect and call a function in postgresql database using the Devart.Data.PostgreSql db factory, DataContext and function mapping style.
I get "InvalidOperationException: Local transaction can not be started while in a distributed transaction."
when calling the function, but what I've noticed is that the InDistributedTransaction property of the PgSqlConnection is true, as I suppose it should be =false.
My question is how is this property set, and how I can check what is causing this?
Thank you.
InDistributedTransaction = true when creating new connection
Re: InDistributedTransaction = true when creating new connection
Please set "Enlist=false;" in your connection string.
For more information, refer to https://www.devart.com/dotconnect/postg ... tring.html.
Does this help?
For more information, refer to https://www.devart.com/dotconnect/postg ... tring.html.
Does this help?