繁体   English   中英

Econnect警告:使用了分布式事务

[英]Econnect Warning: Distributed Transaction was used

我们只是将其中一个.net Windows服务应用程序移动到了与Microsoft GP数据库服务器所在域不同的域中的新2016服务器中。

我们正在使用EConnect 14(GP 2015)。

在应用程序事件日志中,我们会收到1000条这些警告,这会引起问题,因为我们使用的是System Center,当它看到所有这些警告时,就会在CPU上加尖刺处理这些警告。 在我们重新启动Windows服务之前,它们不会停止。

这是警告。

Distributed Transaction was used
This could be caused by new connection strings used within each xml document, but reusing the base transaction scope. 
Configuration Setting 'ReuseBaseTransaction' is by default FALSE. Remove this configuration setting, or set it to FALSE if this was not the expected behavior.

我尝试将其添加到econnect服务配置和我的应用程序配置中,尝试将其设置为false,也尝试将其设置为true,并且警告仍然存在。

   <appSettings>
         <add key="ReuseBaseTransaction" value="false"/>
  </appSettings>

我们正在使用econnect Windows服务,我们没有绕过代理并直接进入存储的proc。

您是否知道如何防止此警告。 我真的不在乎交易是否分散。 我找到了这篇相关文章,但没有提供解决方案。

https://dynamicsgpland.blogspot.com/2010/09/econnect-2010-fills-event-log-with.html

以及这个。
https://community.dynamics.com/gp/b/gpdynland/archive/2010/09/23/econnect-2010-fills-event-log-with-warning-34-distributed-transaction-was-used-34

-Randy

您可以在app.config中配置eConnect API中的一个标志,以禁用这些促销的日志记录。

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <appSettings>
  <add key="LogDtcPromotions" value="false"/>
 </appSettings> 
    <startup> 
        <supportedRuntime version="v4.0"  sku=".NETFramework,Version=v4.6.1" />
    </startup>
</configuration>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM