<p>Is this even a valid question? I have a .NET Windows app that is using MSTDC and it is throwing an exception:</p>

<blockquote>
  <p>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 Component Services Administrative tool ---> System.Runtime.InteropServices.COMException (0x8004D024): The transaction manager has disabled its support for remote/network
  transactions. (Exception from HRESULT: 0x8004D024) at System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32
  propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier,
  Guid&amp; transactionIdentifier, OletxTransactionIsolationLevel&amp;
  isolationLevel, ITransactionShim&amp; transactionShim)....</p>
</blockquote>

<p>I followed <a href="https://support.microsoft.com/en-us/kb/883960" rel="noreferrer">the Kbalertz guide to enable MSDTC</a> on the PC on which the app is installed, but the error still occurs. </p>

<p>I was wondering if this was a database issue? If so, how can I resolve it?</p>

[{'answer_id': 7697, 'author': 'Lars Mæhlum', 'author_id': 960, 'author_profile': 'https://Stackoverflow.com/users/960', 'pm_score': 2, 'selected': False, 'text': '<p>MSDTC must be enabled on both systems, both server and client.\n<br />\nAlso, make sure that there isn\'t a firewall between the systems that blocks RPC.<br/>\n<a href="http://www.sqldev.net/misc/DTCTest.htm" rel="nofollow noreferrer">DTCTest</a> is a nice litt app that helps you to troubleshoot any other problems.<br /></p>\n'}, {'answer_id': 7701, 'author': 'Andrew Peters', 'author_id': 608, 'author_profile': 'https://Stackoverflow.com/users/608', 'pm_score': 7, 'selected': False, 'text': "<p>Do you even need MSDTC? The escalation you're experiencing is often caused by creating multiple connections within a single TransactionScope.</p>\n\n<p>If you do need it then you need to enable it as outlined in the error message. On XP:</p>\n\n<ul>\n<li>Go to Administrative Tools -> Component Services</li>\n<li>Expand Component Services -> Computers -> </li>\n<li>Right-click -> Properties -> MSDTC tab</li>\n<li>Hit the Security Configuration button</li>\n</ul>\n"}, {'answer_id': 8324, 'author': 'Andrew Peters', 'author_id': 608, 'author_profile': 'https://Stackoverflow.com/users/608', 'pm_score': 2, 'selected': False, 'text': "<p>@Dan,</p>\n\n<blockquote>\n  <p>Do I not need msdtc enabled for\n  transactions to work?</p>\n</blockquote>\n\n<p>Only distributed transactions - Those that involve more than a single connection. Make doubly sure you are only opening a single connection within the transaction and it won't escalate - Performance will be much better too.</p>\n"}, {'answer_id': 479149, 'author': 'Davy Landman', 'author_id': 11098, 'author_profile': 'https://Stackoverflow.com/users/11098', 'pm_score': 4, 'selected': False, 'text': '<p>I\'ve found that the best way to debug is to use the microsoft tool called <a href="http://www.microsoft.com/downloads/details.aspx?familyid=5E325025-4DCD-4658-A549-1D549AC17644&amp;displaylang=en" rel="noreferrer">DTCPing</a></p>\n\n<ol>\n<li>Copy the file to both the server (DB) and the client (Application server/client pc)\n\n<ul>\n<li>Start it at the server and the client</li>\n<li>At the server: fill in the client netbios computer name and try to setup a DTC connection</li>\n<li>Restart both applications.</li>\n<li>At the client: fill in the server netbios computer name and try to setup a DTC connection</li>\n</ul></li>\n</ol>\n\n<p>I\'ve had my fare deal of problems in our old company network, and I\'ve got a few tips:</p>\n\n<ul>\n<li>if you get the error message "Gethostbyname failed" it means the computer can not find the other computer by its <strong>netbios name</strong>. The server could for instance resolve and ping the client, but that works on a DNS level. Not on a netbios lookup level. Using WINS servers or changing the LMHOST (dirty) will solve this problem.</li>\n<li>if you get an error "Acces Denied", the security settings don\'t match. You should compare the security tab for the msdtc and get the server and client to match. One other thing to look at is the <a href="http://technet.microsoft.com/en-us/library/aa995844.aspx" rel="noreferrer">RestrictRemoteClients</a> value. Depending on your OS version and more importantly the Service Pack, this value can be different.</li>\n<li>Other connection problems:\n\n<ul>\n<li>The firewall between the server and the client must allow communication over port 135. And more importantly the connection can be initiated from both sites (I had a lot of problems with the firewall people in my company because they assumed only the server would open an connection on to that port)</li>\n<li>The protocol returns a random port to connect to for the real transaction communication. Firewall people don\'t like that, they like to restrict the ports to a certain range. You can restrict the RPC dynamic port generation to a certain range using the keys as described in <a href="http://support.microsoft.com/?kbid=154596" rel="noreferrer">How to configure RPC dynamic port allocation to work with firewalls</a>.</li>\n</ul></li>\n</ul>\n\n<p>In my experience, if the DTCPing is able to setup a DTC connection initiated from the client and initiated from the server, your transactions are not the problem any more.</p>\n'}, {'answer_id': 24009536, 'author': 'Cameron Castillo', 'author_id': 1208908, 'author_profile': 'https://Stackoverflow.com/users/1208908', 'pm_score': 3, 'selected': False, 'text': '<p>Can also see <a href="http://geekswithblogs.net/narent/archive/2006/10/09/93544.aspx" rel="nofollow">here</a> on how to turn on MSDTC from the Control Panel\'s services.msc.</p>\n\n<blockquote>\n  <p>On the server where the trigger resides, you need to turn the MSDTC\n  service on.  You can this by clicking START > SETTINGS > CONTROL PANEL > ADMINISTRATIVE TOOLS > SERVICES.  Find the service called \'Distributed Transaction Coordinator\' and RIGHT CLICK (on it and\n  select) > Start.</p>\n</blockquote>\n'}, {'answer_id': 27263904, 'author': 'Shiv Singh', 'author_id': 2384642, 'author_profile': 'https://Stackoverflow.com/users/2384642', 'pm_score': 8, 'selected': True, 'text': '<p>Use this for windows Server 2008 r2 and Windows Server 2012 R2</p>\n\n<ol>\n<li><p>Click <strong>Start</strong>, click <strong>Run</strong>, type <strong>dcomcnfg</strong> and then click <strong>OK</strong> to open <strong>Component Services</strong>.</p></li>\n<li><p>In the console tree, click to expand <strong>Component Services</strong>, click to expand <strong>Computers</strong>, click to expand <strong>My Computer</strong>, click to expand <strong>Distributed Transaction Coordinator</strong> and then click <strong>Local DTC</strong>.</p></li>\n<li><p>Right click <strong>Local DTC</strong> and click <strong>Properties</strong> to display the <strong>Local DTC Properties</strong> dialog box.</p></li>\n<li><p>Click the <strong>Security</strong> tab.</p></li>\n<li><p>Check mark <strong>"Network DTC Access"</strong> checkbox.</p></li>\n<li><p>Finally check mark <strong>"Allow Inbound"</strong> and <strong>"Allow Outbound"</strong> checkboxes.</p></li>\n<li><p>Click <strong>Apply</strong>, <strong>OK</strong>.</p></li>\n<li><p>A message will pop up about <strong>restarting</strong> the service.</p></li>\n<li><p>Click <strong>OK</strong> and That\'s all.</p></li>\n</ol>\n\n<p>Reference : <a href="https://msdn.microsoft.com/en-us/library/dd327979.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/dd327979.aspx</a></p>\n\n<p><strong>Note:</strong> Sometimes the network firewall on the Local Computer or the Server could interrupt your connection so make sure you create rules to  <strong>"Allow Inbound"</strong> and <strong>"Allow Outbound"</strong> connection for <code>C:\\Windows\\System32\\msdtc.exe</code></p>\n'}, {'answer_id': 67428837, 'author': 'nmbell', 'author_id': 5034468, 'author_profile': 'https://Stackoverflow.com/users/5034468', 'pm_score': 1, 'selected': False, 'text': "<p>MSDTC can be configured with MsDtc PowerShell module, e.g.:</p>\n<pre><code># Import the module\nImport-Module -Name MsDtc\n\n# Set the DTC config\n$dtcNetworkSetting = @{\n    DtcName                           = 'Local'\n    AuthenticationLevel               = 'NoAuth'\n    InboundTransactionsEnabled        = $true\n    OutboundTransactionsEnabled       = $true\n    RemoteClientAccessEnabled         = $true\n    RemoteAdministrationAccessEnabled = $true\n    XATransactionsEnabled             = $false\n    LUTransactionsEnabled             = $true\n}\nSet-DtcNetworkSetting @dtcNetworkSetting\n\n# Restart the MsDtc service\nGet-Service -Name MsDtc | Restart-Service\n</code></pre>\n<p>Run on each of the machines that will be supporting the distributed transactions (i.e. where the MSDTC service is running).</p>\n"}]
['https://Stackoverflow.com/questions/7694', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/230/']