Hi
Sorry for posting this message again.
I'm using ServiceConfig class for handling across component
transactions. My .Net application is running on windows 2003 server.
database is SQLServer. The application works fine if the SQLServer is
running on the same server where my application is running. If I try to
access a SQLServer which is running on a remote server, I get the
folowing error.
An error occurred while enlisting in a distributed transaction.
at
System.Data.SqlClient.SqlInternalConnection.Enlist NonNullDistributedTran
saction(ITransaction transaction)
at
System.Data.SqlClient.SqlInternalConnection.Enlist DistributedTransaction
(ITransaction newTransaction, Guid newTransactionGuid)
at
System.Data.SqlClient.SqlInternalConnection.Enlist DistributedTransaction
()
at System.Data.SqlClient.SqlInternalConnection.Activa te(Boolean
isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
The MSTDTC is running on the remote server. I set the Security
configuration for the components services where application is running
as "No Authentication Required"
(ComponentServices-MyComputer->Properties->MSTDC->SecurityConfiguration)
. With this change the application could run. But I'm not sure if this
is the right way to overcome the authentication issue. Any better
approach please?
Regards
rjn
*** Sent via Developersdex
http://www.developersdex.com ***