事务管理器已禁用其远程/网络事务的支持 [英] The transaction manager has disabled its support for remote/network transactions

查看:184
本文介绍了事务管理器已禁用其远程/网络事务的支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是SQL Server和ASP.NET。我有以下功能:

I'm using SQL Server and ASP.NET. I have the following function:

            Using js = daoFactory.CreateJoinScope()
                Using tran = New Transactions.TransactionScope()
                    '...
                    tran.Complete()
                End Using
            End Using

然而,异常'事务管理器已禁用其远程/网络事务的支持。'被抛出。

JoinScope说明:

Description of JoinScope:

Public Class JoinScope
    Implements IJoinScope
    Implements IDisposable
    '...
End Class

我已经做这种方式没有问题,相同的环境另一个应用程序,但在这里我有这个问题。我能做什么来解决这个问题?

I have worked this way in another application with the same environment without a problem, but here I have this problem. What could I do to fix the issue?

推荐答案

请确保在分发事务处理协调器服务
数据库和客户端上运行。
另外,还要确保你选择网络DTC访问,允许远程客户端,
允许入站/出站和启用TIP。

Make sure that the "Distribute Transaction Coordinator" Service is running on both database and client. Also make sure you check "Network DTC Access", "Allow Remote Client", "Allow Inbound/Outbound" and "Enable TIP".

要启用网络DTC访问的MS DTC事务

To enable Network DTC Access for MS DTC transactions


  1. 打开组件服务管理单元。

  1. Open the Component Services snap-in.

要打开组件服务,单击开始。在搜索框中,键入dcomcnfg,然后preSS ENTER键。

To open Component Services, click Start. In the search box, type dcomcnfg, and then press ENTER.

展开控制台树中,定位到要启用网络MS DTC访问DTC(例如,本地DTC)。

Expand the console tree to locate the DTC (for example, Local DTC) for which you want to enable Network MS DTC Access.

在操作菜单上,单击属性。

On the Action menu, click Properties.

点击安全标签,然后进行以下更改:
在安全设置中,选择网络DTC访问复选框。

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.

这篇关于事务管理器已禁用其远程/网络事务的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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