日期:2014-05-18  浏览次数:20812 次

该事务管理器已经禁止了它对远程/网络事务的支持
这个问题怎么回事啊,本机好好的,用的是SA账户.这个远程事物怎么开启


“/”应用程序中的服务器错误。
--------------------------------------------

该事务管理器已经禁止了它对远程/网络事务的支持。 (异常来自 HRESULT:0x8004D024) 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.Runtime.InteropServices.COMException: 该事务管理器已经禁止了它对远程/网络事务的支持。 (异常来自 HRESULT:0x8004D024)

源错误: 


行 231: }
行 232: cmd2.Connection = conn2;
行 233: conn2.EnlistTransaction(tran);
行 234: try
行 235: {
 

源文件: d:\workplaces\yangjing\项目源代码\codes\e_learning\synchrondnt\synchronizer.cs 行: 233 

堆栈跟踪: 


[COMException (0x8004d024): 该事务管理器已经禁止了它对远程/网络事务的支持。 (异常来自 HRESULT:0x8004D024)]
  System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim) +0
  System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken) +216

[TransactionManagerCommunicationException: 已禁用对分布式事务管理器(MSDTC)的网络访问。请使用组件服务管理工具启用 DTC 以便在 MSDTC 安全配置中进行网络访问。]
  System.Transactions.Oletx.OletxTransactionManager.ProxyException(COMException comException) +183993
  System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken) +293
  System.Transactions.TransactionStatePSPEOperation.PSPEPromote(InternalTransaction tx) +78
  System.Transactions.TransactionStateDelegatedBase.EnterState(InternalTransaction tx) +177
  System.Transactions.EnlistableStates.Promote(InternalTransaction tx) +15
  System.Transactions.Transaction.Promote() +61
  System.Transactions.TransactionInterop.ConvertToOletxTransaction(Transaction transaction) +46
  System.Transactions.TransactionInterop.GetExportCookie(Transaction transaction, Byte[] whereabouts) +193
  System.Data.SqlClient.SqlInternalConnection.GetTransactionCookie(Transaction transaction, Byte[] whereAbouts) +35
  System.Data.SqlClient.SqlInternalConnection.EnlistNonNull(Transaction tx) +450
  System.Data.SqlClient.SqlInternalConnection.Enlist(Transaction tx) +4844290
  System.Data.SqlClient.SqlInternalConnection.EnlistTransaction(Transaction transaction) +128
  System.Data.SqlClient.SqlConnection.EnlistTransaction(Transaction transaction) +130
  RuiYi.Synchron.Synchronizer.SynRegStudent(Student model, String sName, String sPwd, Int32 sRoleID) in d:\workplaces\yangjing\项目源代码\codes\e_learning\synchrondnt\synchronizer.cs:233
  RuiYi.Web.Register.Student.RegisterStudent(Int32 RoleID, String ImagePath) in D:\Workplaces\yangjing\项目源代码\codes\E_Learning\Web\Register\Student.aspx.cs:116
  RuiYi.Web.Register.Student.btnAdd_Click(Object sender, EventArgs e) in D:\Workplaces\yangjing\项目源代码\codes\E_Learning\Web\Register\Student.aspx.cs:47
  System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
  System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

 


------解决方案--------------------
<