与底层事务管理器的通信失败.MSDTC [英] Communication with the underlying transaction manager has failed.MSDTC

查看:42
本文介绍了与底层事务管理器的通信失败.MSDTC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个系统,一个是 Windows 7 Enterprise,其中安装了我的应用程序,我有 Windows Server 2008 R Sp1 机器,其中数据库已集成.

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.

访问与底层事务管理器的数据库通信失败时出现以下错误.由于通信问题,MSDTC 事务管理器无法从源事务管理器中提取事务.可能的原因是:存在防火墙并且它没有 MSDTC 进程的例外,两台机器无法通过它们的 NetBIOS 名称找到对方,或者两个事务管理器之一没有启用对网络事务的支持.

我已经启用了所需的 MSDTC 和入站和出站请求,并且没有设置身份验证.

I've already enabled the required MSDTC and inbound and out bound requests and set no authentication.

两个系统都在同一个域中.

Both the systems are in the same domain.

从 windows server 2008 R2 机器我可以按名称 ping 到 windows 7,反之亦然.

From windows server 2008 R2 machine I'm able to ping by name to windows 7 and vice-versa is not happening.

尝试从域控制器机器固定 Windows server 2008 R2 机器,但失败了.

Tried pining Windows server 2008 R2 Machine from domain controller machine and failed.

有些地方读到应该为两台服务器之间的交易设置 MSDTC 并测试这些设置 DTCPing 工具是否可用.运行时失败

Some where read that for Trasactions between the two servers MSDTC should be set up and to test these setting DTCPing tool is avaialble.got failed when running

尝试从 Windows Server 2007 机器 ping 到 Windows Server 2008 R2 时的 DTCPing 工具,因为它无法通过 netbios 名称找到它

DTCPing tool when trying to ping from Windows server 2007 machine to windows server 2008 R2 as its not able to find it by netbios name

推荐答案

我在 win10 机器上遇到了同样的问题.检查以下步骤:

I had the same problem win my win10 machine. Check the following steps:

服务 => 分布式事务协调器正在运行

Services => Distributed Transaction Coordinator is running

组件服务 => 本地 DTC => 属性 => 检查是否允许入站和出站.我有以下设置:

Component Services => Local DTC => Properties => check if Inbound and Outbound is allowed. I have the following settings:

组件服务 => 我的电脑 => 属性 => 默认协议 => TCP/IP 端口范围 5000-5100 已配置.

Component Services => My Computer => Properties => Default Protocol => TCP/IP The port range 5000-5100 is configured.

Windows 防火墙 => 允许应用或功能通过 Windows 防火墙 => 分布式事务协调器

Windows Firewall => Allow an app or feature through Windows Firewall => Distributed Transaction Coordinator

如果未设置三个复选框,您可以使用以下命令执行此操作

if the threee checkboxes are not set you can do this with the following commands

netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (TCP-In)" new enable=yes profile="domain,private,public"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (TCP-Out)" new enable=yes profile="domain,private,public"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (RPC)" new enable=yes profile="domain,private,public"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (RPC-EPMAP)" new enable=yes profile="domain,private,public"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (TCP-In)" new enable=yes profile="domain,private,public"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (TCP-Out)" new enable=yes profile="domain,private,public"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (RPC)" new enable=yes profile="domain,private,public"
netsh advfirewall firewall set rule name="Distributed Transaction Coordinator (RPC-EPMAP)" new enable=yes profile="domain,private,public"

这篇关于与底层事务管理器的通信失败.MSDTC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆