msdtc

Occasional System.ArgumentNullException using TransactionScope and MS DTC

自作多情 提交于 2019-12-04 21:45:16
I'm occasionaly getting this exception on our production server: System.ArgumentNullException: Value cannot be null. at System.Threading.Monitor.Enter(Object obj) at System.Data.ProviderBase.DbConnectionPool.TransactedConnectionPool.TransactionEnded(Transaction transaction, DbConnectionInternal transactedObject) at System.Data.SqlClient.SqlDelegatedTransaction.SinglePhaseCommit(SinglePhaseEnlistment enlistment) at System.Transactions.TransactionStateDelegatedCommitting.EnterState(InternalTransaction tx) at System.Transactions.CommittableTransaction.Commit() at System.Transactions

Service Bus 1.0 for Windows Server Transaction/Error Handling

假如想象 提交于 2019-12-04 17:13:42
I'm sure I'm not the first to say it, but there's a severe lack of documentation on the finer points of Service Bus 1.0 for Windows Server out there... I'm hoping some of the MS insiders can help clear a few things up... Do services utilizing queues/topics run in an implicit, ambient transaction? For instance consider the following code snippet: [ServiceBehavior] public class MySbService : IDoWork { [OperationBehavior] void DoSomeWork(WorkRequest request) { DoDatabaseWork(); DoMoreDatabaseWork(); } } In the above sample, without creating an explicit TransactionScope , would DoDatabaseWork() be

Does TransactionScope Need DTC Service on?

試著忘記壹切 提交于 2019-12-04 09:23:29
问题 From what I'm reading, in order to use TransactionScope in .NET, you need the Distributed Transaction Coordinator service in Windows to be running. I have that service turned off , and my app seems to be running the same and rolls back transactions no problem. Am I missing something? How is it able to work? I'm running Windows 7 and running the webapp off VisualStudio 2010. 回答1: More modern versions of windows have a mini DTC version in kernel. It is not distributed but uses the same API -

confusion about transactions and msdtc

好久不见. 提交于 2019-12-04 08:35:47
问题 I have some basic confusion about how transactions and msdtc work together. I have a basic server/client winforms app. The app uses transactionscope to encapsulate several sql commands that are executed on the sql server. The app seemed to work fine when I enabled msdtc network access on the server only. Then one day it stopped working saying network access was not enabled. Now it seems that I have to enable msdtc network access on both the client computer and server for transactionscope to

Intermittent failure to enlist SSIS package in DTC transaction

China☆狼群 提交于 2019-12-04 07:03:28
Our packages are randomly failing with the following error message: SSIS Error Code DTS_E_OLEDBERROR . An OLE DB error has occurred. Error code: 0x8004D00A. COM error object information is available. Source: "[Some Package Name]" error code: 0x8004D00A Description: "The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D00A "Unable to enlist in the transaction." This doesn't happen all the time, and re-running the package often succeeds, so I don't think it's a DTC or network config problem. This happens whether or not we're running the

How to fix Distributed Transaction Manager (MSDTC) has been disabled errors [closed]

最后都变了- 提交于 2019-12-04 00:57:01
We are using transaction scope features of ASP.NET to manage distributed transaction for that we need to enable distributed transaction via following link: The partner transaction manager has disabled its support for remote/network transactions Its works well with SQL Server 2005 and Windows Server 2003 but when it comes to Windows Server 2008 server and SQL Server 2005 we are getting following error, still we followed the same steps provided in above link: Windows Server 2008 + SQL Server 2005 + Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC

MSDTC and firewall [closed]

隐身守侯 提交于 2019-12-04 00:51:04
We are using MSDTC for SQL transactions. I am having issue with setting up firewall for MSDTC to work. The application and SQL are running on separate machine. Currently MSDTC is working if i turn off firewall on application server. I think there should be someway to add exception to the firewall setting for some ports. So that firewall can still be ON and DTC will not have any issues. I am not sure of the ports to add in firewall setting (I did try adding port 135 with no success) Have your Firewall allow port 135 and the dcom port range. By default, the dcom port range is 1024-65535. Thats a

The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems

≯℡__Kan透↙ 提交于 2019-12-03 12:24:51
I have hosted my Webapp on server 1 and my database on server 2 But i m getting following error "Communication with the underlying transaction manager has failed." I googled and found a post which mentioned that it is the issue of DTC(Distributed Transaction) I enabled DTC on server2(DB server) and made an exception of it in Firewall. But still same error. Here is the full stack trace Message: System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServices.COMException: The MSDTC transaction

TransactionScope - The underlying provider failed on EnlistTransaction. MSDTC being aborted

一笑奈何 提交于 2019-12-03 11:42:21
Our team have got a problem that manifests as: The underlying provider failed on EnlistTransaction; Cannot access a disposed object.Object name: 'Transaction'. which seemed to appear as soon as we began using TransactionScope to handle our applications' transactions. The top part of the stacktrace is captured as: at System.Data.EntityClient.EntityConnection.EnlistTransaction(Transaction transaction) at System.Data.Objects.ObjectContext.EnsureConnection() at System.Data.Objects.ObjectContext.ExecuteStoreCommand(String commandText, Object[] parameters) at Reconciliation.Models.BillLines

TransactionScope alternative without DTC

那年仲夏 提交于 2019-12-03 07:36:35
are there any alternative to transactionScope which does not need to enable DTC?? In the transaction I need to make two operations: Create one user (using membership - sql membership provider) Do one insert operation. TransactionScope uses the LTM - Lightweight Transaction Manager in .Net. Only if you open more than one connection in the same transaction or go between databases, should TransactionScope promote the transaction to the 2PC-based TX-manager, DTC. For MS SQL Server 2008 and above, the DTC will become involved only if you are opening connections to different DBs. OR if you are