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.Sql Client.SqlInter nalConnection.E nlistNonNullDis tributedTran
saction(ITransa ction transaction)
at
System.Data.Sql Client.SqlInter nalConnection.E nlistDistribute dTransaction
(ITransaction newTransaction, Guid newTransactionG uid)
at
System.Data.Sql Client.SqlInter nalConnection.E nlistDistribute dTransaction
()
at System.Data.Sql Client.SqlInter nalConnection.A ctivate(Boolean
isInTransaction )
at System.Data.Sql Client.SqlConne ction.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"
(ComponentServi ces-MyComputer->Properties->MSTDC->SecurityConfig uration)
.. 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 ***