msdtc

maxTimeout value from Machine.Config is not picked up by C# winform app

China☆狼群 提交于 2019-12-23 13:11:17
问题 I have been working on a winform app with Oracle 10g database which is using TransactionScope and wanted to modify the maxTimeOut value specified in machine.config file, my machine.config file is in the following location (I am using .net 4 for this app) C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config Originally there was not anything specified for maxTimeOut in it, therefore it defaults to 10 minutes. In order to change it I have added the maxTimeout="00:00:10" value as seen below:

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

 ̄綄美尐妖づ 提交于 2019-12-21 03:56:10
问题 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

TransactionScope alternative without DTC

一个人想着一个人 提交于 2019-12-21 01:19:47
问题 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. 回答1: 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

Where MSDTC needs to be installed in Distributed transaction case

≯℡__Kan透↙ 提交于 2019-12-20 03:38:07
问题 I need to maintain distributed transactions in my application Assume Service1 is installed on Server1 [ServiceContract] IService1 { [OperationContract] Operation1(); } Service2 is installed on Server2 [ServiceContract] IService2 { [OperationContract] Operation2(); } and the client is consuming the two services using (TransactionScope ts = new TransactionScope()) { Service1Proxy.Operation1(); Service2Proxy.Operation2(); } Where should i exactly install the MSDTC, do it required to be installed

Communication with the underlying transaction manager has failed.MSDTC

百般思念 提交于 2019-12-19 12:04:14
问题 I ve two systems one is windows 7 Enterprise in which my application is installed and I've Windows server 2008 R Sp1 machine where database is intsllaed. Getting below error when accessing database ommunication with the underlying transaction manager has failed. The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the

Communication with the underlying transaction manager has failed.MSDTC

僤鯓⒐⒋嵵緔 提交于 2019-12-19 12:03:03
问题 I ve two systems one is windows 7 Enterprise in which my application is installed and I've Windows server 2008 R Sp1 machine where database is intsllaed. Getting below error when accessing database ommunication with the underlying transaction manager has failed. The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the

Distributed Transaction Coordinator

痞子三分冷 提交于 2019-12-18 18:23:23
问题 I am trying make a database transaction(inserting records) across multiple system. So, I decided to use System.Transaction Namespace in .net. I configured MSDTC on both system(But i dont know whether i configured correctly). My transaction has two insert query one will execute at local system. another, will execute at some other system in a local network. First insert query work successfully but second one raise a error like : Message = "The transaction has already been implicitly or

Multiple Connections With Same Connection String Under A Single Transaction, Elevated Transaction?

别来无恙 提交于 2019-12-18 07:06:23
问题 When using ado.net, and creating multiple connections to a MS SQL Server database within a single transaction (using System.Transactions.TransactionScope), does System.Transactions elevate the transaction from the lightweight transaction manager to the distributed transaction coordinator (kernel transaction coordinator on Vista), even if the connection strings are the same for all of the connection objects? The documentation is somewhat ambiguous on this specific situation. It says the

Multiple Connections With Same Connection String Under A Single Transaction, Elevated Transaction?

蓝咒 提交于 2019-12-18 07:06:22
问题 When using ado.net, and creating multiple connections to a MS SQL Server database within a single transaction (using System.Transactions.TransactionScope), does System.Transactions elevate the transaction from the lightweight transaction manager to the distributed transaction coordinator (kernel transaction coordinator on Vista), even if the connection strings are the same for all of the connection objects? The documentation is somewhat ambiguous on this specific situation. It says the

Unable to begin a distributed transaction

大城市里の小女人 提交于 2019-12-17 08:16:12
问题 i'm trying to run SQL against a linked server, but i get the errors. BEGIN DISTRIBUTED TRANSACTION SELECT TOP 1 * FROM Sessions OLE DB provider "SQLNCLI" for linked server "ASILIVE" returned message "No transaction is active.". Msg 7391, Level 16, State 2, Line 3 The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "ASILIVE" was unable to begin a distributed transaction. There are two errors returned by the provider: Error #1: Number: $80040E14 Source: