FIX: MSDTC encountered an error (HR=0x80000171)

Daniel Segun By: Daniel Segun
3 minute read
MSDTC encountered an error

Home » Fix » FIX: MSDTC encountered an error (HR=0x80000171)

MSDTC encountered an error on your PC? Don’t not worry, we have got the right fixes for you. Some Windows users reported getting errors when they enable the WCF-Custom receive location. The error is usually displayed in this format: MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system.

Microsoft’s Distributed Transaction Coordinator (MSDTC) enables you to control transactions coordination between resource managers and applications. Also, while MSDTC relies on the network topology of the underlying components, a transaction can span multiple DTCs throughout your network.

However, Network DTC Access must be enabled on all MS DTC instances that are participating in the transaction; this enables transactions to be coordinated across the network.

For example, if a remote computer attempts to update a SQL database by using MS DTC transaction while Network DTC is disabled, the transactions will fail; hence, the MSDTC encountered an error prompt. The Windows Report team has compiled the applicable solution for this error problem.

How to fix ‘MSDTC encountered an error’ alert

  1. Enable Network DTC Access
  2. Enable a firewall exception for MS DTC
  3. Exclude MSDTC in your antivirus settings
  4. Enable rule for PPTP

Solution 1: Enable Network DTC Access

One of the quick fixes for the error problem is to enable Network DTC Access for MS DTC transactions. You can do this in the component services. Follow these steps to enable network DTC Access:

  • Go to Start, type “dcomcnfg” without quotes, and then hit the Enter key.msdtc encountered an error
  • Expand the console tree to locate Local DTC (usually located in the component services tab)
  • On the Action menu, click Properties.
  • Click the Security tab and make the following changes:
  • In Security Settings, select the Network DTC Access check box.
  • In Transaction Manager Communication, select the ‘Allow Inbound’ and ‘Allow Outbound’ check boxes.
  • Click OK.
  • Restart the Distributed Transaction Coordinator service (MSDTC) afterwards.

However, if you still get the error after trying out this fix, you may proceed to the next solution.

Solution 2: Enable a firewall exception for MSDTC

Sometimes, MSDTC encountered an error prompt is caused by the Windows Firewall. Windows Firewall prevents MSDTC from running on your computer; this is due to its protective measures against external control.

However, you can bypass this ‘wall’ by enabling firewall exception for MSDTC. Here’s how to do this:

  • Go to Start > Type “Windows Firewall”, and select “allow an app through Windows Firewall“.msdtc encountered an error
  • Click on “Change Settings” optionsmsdtc encountered an error
  • Now, Click on “Allow another program”
  • On the Exceptions tab, select the ‘Distributed Transaction Coordinator’ check box.
  • Click OK.

Meanwhile, if you still get the error after trying out this fix, you may proceed to the next solution.

Solution 3: Exclude MSDTC in your antivirus settings

Also, hyperactive antivirus programs can block MSDTC on Windows 10; hence, resulting in MSDTC encountered an error prompt. The best workaround would be to exclude DTC from your antivirus protection settings.

Here’s how to do this in Windows Defender:

  • Launch Windows Defender Security Center
  • Now, go to Virus & Threat protection settingsmsdtc encountered an error
  • Select Exclusions
  • Click on ‘Add or remove exclusions’ option
  • Now, select ‘Add an exclusion’ and add DTC.
  • Restart your PC

— RELATED: FIX: Wi-Fi frequently disconnects in Windows 10, 8.1, 8, 7

Solution 4: Enable rule for PPTP

Here’s how to do this:

  • Go to Start > Control Panelmsdtc encountered an error
  • Now, go to Windows Firewall > Select Advanced Settingsmsdtc encountered an error
  • Search for the ‘Routing and Remote Access “under Inbound Rules and Outbound Rules”.

For Inbound Rules: right-click “Routing and Remote Access (PPTP-In)”, select “Enable Rule”.  For Outbound Rules: right-click “Routing and Remote Access (PPTP-Out)”, select “Enable Rule”.

Conclusively, we suggest that you also check the MSDTC security settings dialog for details concerning MSDTC encountered an error (HR=0x80000171) prompt. Let us know how you were able to solve this error problem. Feel free to comment below.



Next up

3 best VPNs for Germany to bypass geo-restrictions in 2019

Loredana Paraianu avatar. By: Loredana Paraianu
7 minute read

Even if you live in one of the most developed countries in the world, where everything seems to work perfectly, computer privacy is often under […]

Continue Reading

5 awesome EDM software to create top tracks in 2019

Tashreef Shareef avatar. By: Tashreef Shareef
Less than a 1 minute read

The thought of producing EDM (electronic dance music) may have crossed your mind several times especially if you are a content creator, budding music artist […]

Continue Reading

5 best backup software for QNAP to protect your files

Dominique Wilson avatar. By: Dominique Wilson
Less than a 1 minute read

No matter if you run a business or not, if you want store data, QNAP (Quality Network Appliance Provider) Systems is probably the answer you […]

Continue Reading