Windows error 0x8004D024, -2147168220

Detailed Error Information

XACT_E_NETWORK_TX_DISABLED[1]

MessageThe transaction manager has disabled its support for remote/network transactions.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[2][1]
DescriptionThe source of the error code is COM/OLE Interface management.[2][1]
Error Code53284 (0xd024)

Questions

108votes
6answers

How do I enable MSDTC on SQL Server?

Is this even a valid question? I have a .NET Windows app that is using MSTDC and it is throwing an exception: > System.Transactions.TransactionManagerCommunicationException: Network access > for Distributed Transaction Manager (MSDTC) has been disabled. Please enable > DTC for network access in the security configuration for MSDTC using the [...] read more
sql-server
msdtc
6votes
1answer

Using asynchronous save changes on Entity Framework with multiple contexts

I am using EF 6 with a UoW pattern. I have multiple contexts defined in my UoW since I'm using data from multiple databases. Everything seems to be working correctly except the CommitAsync function I have defined. Here's the code I have: public async Task CommitAsync() { try { using [...] read more
c#
asp.net-mvc
entity-framework
async-await
unit-of-work
2votes
0answers

What is "The underlying provider failed on EnlistTransaction" Error in SQL?

I am having an application hosted in the IIS. My IIS and SQL were in difference systems.Using a single TransactionScope I am inserting into three different tables using Entity framework. Now I am getting the following error. "The underlying provider failed on EnlistTransaction" which have the inner exception as "Network [...] read more
sql-server
entity-framework
transactions
2votes
4answers

Simple Transactions

I have 2 linq 2 SQL statements I'd like to be in a transaction (the SQL server is remote, outside firewalls etc) all other communication works but when I wrap these 2 statements in a TransactionScope() I begin having to configure MSDTC which we did, but then there are firewall [...] read more
linq-to-sql
transactions
msdtc
2votes
1answer

Can multiple Entity Framework Data Contexts be used within a single TransactionScope?

I'm attempting to use multiple EntityFramework 6 DataContexts in a TransactionScope using{}. I get the following Exception > A first chance exception of type 'System.Data.Entity.Core.EntityException' > occurred in mscorlib.dll > > Additional information: The underlying provider failed on Open. Inner Exception 1 > Network access for Distributed Transaction Manager (MSDTC) [...] read more
c#
.net
entity-framework
transactionscope
2votes
1answer

Multiple stored procedure calls in 1 transaction with Entity Framework 5

I am using Entity Framework 5 and need to make multiple stored procedure calls in a single transaction. They are all inserts where each depends on an output of the previous one and I want to be able to roll everything back in case one fails. Each call uses the [...] read more
c#
entity-framework
c#-4.0
asp.net-mvc-4
entity-framework-5
2votes
3answers

WCF windows service issue with MSDTC

I've a .net 3.5 windows service which uses msmq running on 2008 application server.This service communicates with the sql 2005 database on the database server. Am getting an error mentioned below on calling this service from my aspx page on 2008 web server: "Network access for Distributed Transaction Manager (MSDTC) [...] read more
c#
wcf
windows-services
msdtc
2votes
2answers

TransactionScope, linq and strange transaction manager issue (HRESULT: 0x8004D024)

I have a service level methods, which make few changes to database and I want them to use transaction control. Such methods can do following: - LINQ SubmitChanges() functionality - Calls to StoredProcedures Component users can combine set of such elementary operations into something bigger. I see that there is [...] read more
linq
linq-to-sql
transactionscope
1vote
1answer

WCF Transaction with multiple inserts

When creating a user, entries are required in multiple tables. I am trying to create a transaction that creates a new entry into one table and then pass the new entityid into the parent table and so on. The error I am getting is > The transaction manager has disabled [...] read more
asp.net
entity-framework
wcf
transactions
transactionscope
1vote
1answer

What things should I consider when using System.Transactions in my EF project?

BACKGROUND I have both an MVC app and a windows service that access the same data access library which utilizes EntityFramework. The windows service monitors certain activity on several tables and performs some calculations. We are using the DAL project against several hundred databases, generating the connection string for the [...] read more
entity-framework
transactions
isolation-level
1vote
3answers

MSDTC Exception during Transaction: C#

I am getting a MSDTC exception in a Transaction in a C# application. The functionality is to upload one lakh (one hundred thousand) zipcode records into database tables after reading from a csv file. This operation is done in around 20 batch database operations (each batch containing 5000 records). The [...] read more
c#
sql-server-2005
exception
transactions
msdtc
0votes
1answer

SQL Server database connections being dropped intermittently

Occasionally in one of our production environments (we have a dozen or so without different clients pointing to each) we get exceptions at different points in the process. The code doesn't do anything fancy - just your basic inserts and updates. We are however, performing multiple inserts and updates within [...] read more
windows
.net
sql-server
sql-server-2005
iis-6
0votes
1answer

The underlying provider failed on Open?

I created an application using the Entity framework 6 with SQL. It was working fine. suddenly yesterday I got an error twice from the entity framework as shown below, After that this issue not raised yet now. System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Transactions.TransactionManagerCommunicationException: Network access for Distributed [...] read more
sql-server
entity-framework-6
0votes
0answers

Inconsistent behaviour with distributed transaction (MSDTC exception)

You may think this has been asked before, but hear me out first. I have a project that runs across different servers with remote connections. On the development server, all tests pass. In the QA server that has same configuration, most tests pass but a couple fail and the exception [...] read more
c#
entity-framework
sql-server-2008
distributed-transactions
0votes
1answer

Insert into multiple tables using WCF Transactions

I am trying to add an entry into a table and use the primary key of that added entry to create an additional entry into another table. The error I am getting is > The transaction manager has disabled its support for remote/network > transactions. (Exception from HRESULT: 0x8004D024) I [...] read more
c#
asp.net
entity-framework
wcf
transactions
0votes
1answer

Simpleroleprovider causing remote transaction inside transactionscope

I am in the process of upgrading asp.net membership to the new simplemembership provider in MVC4. This is an Azure/Sql Azure app which runs fine on localhost but fails when deployed. I have code in a transaction as follows: TransactionOptions toptions = new TransactionOptions(); toptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable; using (TransactionScope trans [...] read more
asp.net-mvc-4
transactionscope
simplemembership
distributed-transactions
0votes
1answer

TransactionScope in a medium trust

Im running an ASP.NET MVC application hosted with Mosso, there are telling me that they cannot enable DTC because they run everything in medium trust. So when executing code that references: TransactionScope I get the following error. The transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: [...] read more
asp.net
asp.net-mvc
transactionscope
0votes
1answer

Removing .edmx from my project

I am using Code First with existing DB- Entity Framework 4.1, In my project i added .edmx file and generated schema, views stored procedures everything is working perfect, everything is in production. My problem is here 1- I moved my .edmx file,.tt to other project 2- Removed from working project [...] read more
asp.net-mvc-3
entity-framework-4.1
unity-container
repository-pattern

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0