Re: An error occurred while enlisting in a distributed transaction

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



No one?

:(







cmay wrote:
I am trying to wrap some DB calls in a com transaction for testing
purposes (make a bunch of calls to the DB, check if they look right,
rollback any changes, move on to next test).

So far it works fine running against a local SQL Server, but I can't
get it to work against our actual development server.

I have tried messing around with the Security area of DTC settings on
both my machine and the server, allowed inbound and outbound
connections, enabled network, turned off my firewall etc.

Of course the only message I get when trying to open an ADO.NET
connection against our sql server is:

An error occurred while enlisting in a distributed transaction.

This exception is being fired on
SqlInternalConnection.EnlistNonNullDistributedTransaction(ITransaction
transaction).


The code I am using is as follows:

Dim config As New ServiceConfig
config.Transaction = TransactionOption.RequiresNew
ServiceDomain.Enter(config)

'*** try to access the DB

If ContextUtil.IsInTransaction Then
ContextUtil.SetAbort()
End If
ServiceDomain.Leave()


Can anyone give me any advice as to anything I can check, or probably
better would be if there was any way that I can find out more
information about why my transaction is not working. I see stuff about
tracing but I can't seem to find any of that information. There is
nothing in my event viewer.

Any help?

.



Relevant Pages

  • Re: counting rows
    ... The trigger is a simple look up via a unique index, ... isolation is that no other connections can insert rows within the key ... the row that the other transaction is insering is not visible to the ... to demonstrate what i'm talking about - current version is SQL Server ...
    (comp.databases.theory)
  • Re: SqlTransaction.ZombieCheck error
    ... SQL Server should never rollback your transaction automatically. ... The rollback command is available to developers, it should be our decision to roll back the transaction. ... So I research a lot on this and also talk to somebody in our SQL support team. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Transaction problem (delete / select)
    ... SELECT will be blocked until the DELETE finishes its transaction. ... Tibor Karaszi, SQL Server MVP ... until computer 1 makes a commit or rollback. ... >>> Joćo Rosa ...
    (microsoft.public.sqlserver.server)
  • Re: Few confusing things about transactions
    ... abort the transaction? ... COMMIT and ROLLBACK. ... COMMIT is the normal flow. ... Error handling in SQL Server ...
    (microsoft.public.sqlserver.programming)
  • Re: Transaction Isolation Level
    ... This means that while I initiate a transaction selecting all new orders it ... My query is executed on a SQL server 2005. ... the isolation level you should use is snapshot isolation. ...
    (comp.databases.ms-sqlserver)