Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AseConnection.Open throws "Could not connect to DTC" exception

44 views
Skip to first unread message

Sixto

unread,
Aug 13, 2010, 9:11:29 AM8/13/10
to
I'm creating a WCF service using the net.MSMQ binding that writes to
an ASE database. I need the database connection to be part of a MS DTC
transaction. I'm opening the connection with the connection string
shown below but the Open method throw an exception. How do I configure
the connection string to support DTC transactions? I've verified the
DTC is running properly.

Connections string:
Data
Source=aseServer;Port=5000;Database=theDatabase;UID=aUser;PWD=aPwd;Charset=iso_1;Enlist=1;DistributedTransactionProtocol=OLE;

Using this reference for the AseConnection object:
Sybase.AdoNet2.AseClient, Version=2.155.1000.0, Culture=neutral,
PublicKeyToken=95d94fac46c88e1e

Exception:
Sybase.Data.AseClient.AseException: Could not connect to DTC.
at Sybase.Data.AseClient.AseConnection.StartDistributedTx()
at Sybase.Data.AseClient.AseConnection.Open()
... application specific trace snipped...

0 new messages