Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction.


we’ve had problem we’ve been trying solve week , out of ideas.  so i’m posting nhibernate , ms database forum.

in nutshell, periodically following message on 1 of our servers, not anywhere else:

nhibernate.exceptions.genericadoexception: not insert: [cho.next.global.dataobjects.eventtime][sql: insert chonext.dbo.eventtime (starttime, endtime, startregdate, endregdate, eventid, nexteventtimeid, recurrencegroup) values (?, ?, ?, ?, ?, ?, ?); select scope_identity()] ---> system.data.sqlclient.sqlexception: distributed transaction completed. either enlist session in new transaction or null transaction.

it not seem specific 1 (insert, delete, etc.), pass, message distributed transactions.  it inconsistent , hard reproduce.  sometimes work few hours , every operation fail.

architecture notes:

-this nt service uses msmq.  so each incoming message used spawn new thread, although we’ve changed have single thread running @ time make sure it’s not threading issue.

-this running under .net 3.5 , sql server 2005

-we make same calls through website , work.  so specific running service.

-all of data access through nhibernate, can’t confirm happens normal ado.net calls.

-one difference compared other working environments database , web server on different domains. 

-there bunch of posts out there distributed transaction controller settings , i’ve gone through them each 1 can find fine toothed comb , followed each ones advice if applicable.  there no firewall between servers, dtc setup no no authentication, i’ve used dtcping , dtctester , pass.

any thoughts or suggestions appreciated.


working @ jonas software

 the error mean insert took long execute , dtc transaction timed out. 

"administrative tools -> component service -> computer -> computer ->
right-click computer , click properties", default dtc transaction time out 60 seconds.

the root of issue though long running transaction, should try find out why takes server long insert.
this posting provided "as is" no warranties, , confers no rights.


SQL Server  >  SQL Server Data Access



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........