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

By: Daniel Segun
3 minute read
MSDTC encountered an error

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.

RELATED STORIES TO CHECK OUT:

Next up

These features are out for good with Windows 10 version 1809

iamsovy@gmail.com' By: Sovan Mandal
2 minute read

Microsoft is all set to launch its next big update, Windows 10 version 1809 in October. While that should be a nice piece of news […]

Continue Reading

Windows 10 18H2 builds no longer receive new features

By: Matthew Adams
3 minute read

The Windows 10 October 2018 Update (otherwise 18H2) rollout might now be two to three weeks away. For the last few months, new build previews […]

Continue Reading

Windows 7 KB4457139 makes it easier to upgrade to Windows 10

By: Madeleine Dean
2 minute read

Microsoft released a new Windows 7 update to the general public. Update KB4457139 is actually a preview of the upcoming monthly rollup update and allows users […]

Continue Reading

Discussions