Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / September 2005

Tip: Looking for answers? Try searching our database.

Error when enlisting in a distributed transaction

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RJN - 01 Sep 2005 11:43 GMT
Hi

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.EnlistNonNullDistributedTran
saction(ITransaction transaction)
  at
System.Data.SqlClient.SqlInternalConnection.EnlistDistributedTransaction
(ITransaction newTransaction, Guid newTransactionGuid)
  at
System.Data.SqlClient.SqlInternalConnection.EnlistDistributedTransaction
()
  at System.Data.SqlClient.SqlInternalConnection.Activate(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
Florin Lazar [MSFT] - 15 Sep 2005 08:13 GMT
The different ways in which you can configure MSDTC are described at
http://blogs.msdn.com/florinlazar/archive/2004/06/18/159127.aspx

Regards,
Signature

Florin Lazar - Microsoft - [ http://blogs.msdn.com/florinlazar ]
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.

Hi

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.EnlistNonNullDistributedTran
saction(ITransaction transaction)
  at
System.Data.SqlClient.SqlInternalConnection.EnlistDistributedTransaction
(ITransaction newTransaction, Guid newTransactionGuid)
  at
System.Data.SqlClient.SqlInternalConnection.EnlistDistributedTransaction
()
  at System.Data.SqlClient.SqlInternalConnection.Activate(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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.