简体   繁体   English

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

[英]Econnect Warning: Distributed Transaction was used

We just moved one of our apps which is a .net windows service to a new 2016 server in a different domain than the Microsoft GP database server is in. 我们只是将其中一个.net Windows服务应用程序移动到了与Microsoft GP数据库服务器所在域不同的域中的新2016服务器中。

We are using EConnect 14 (GP 2015). 我们正在使用EConnect 14(GP 2015)。

We are getting 1000's of these warning in the application event log, which causes a problem because we use System Center and when it sees all those warnings it is spiking the CPU to process them. 在应用程序事件日志中,我们会收到1000条这些警告,这会引起问题,因为我们使用的是System Center,当它看到所有这些警告时,就会在CPU上加尖刺处理这些警告。 They don't stop until we restart our windows service. 在我们重新启动Windows服务之前,它们不会停止。

Here is the warning. 这是警告。

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.

i've tried adding this into the econnect service config and my apps config, tried setting it to false, tried true as well and the warning persists. 我尝试将其添加到econnect服务配置和我的应用程序配置中,尝试将其设置为false,也尝试将其设置为true,并且警告仍然存在。

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

We are using the econnect windows service, we are not bypassing the proxy and going directly to the stored procs. 我们正在使用econnect Windows服务,我们没有绕过代理并直接进入存储的proc。

Do you have any idea how to prevent this warning. 您是否知道如何防止此警告。 I really don't care if the transaction is distributed or not. 我真的不在乎交易是否分散。 I found this related article but it offers no solution. 我找到了这篇相关文章,但没有提供解决方案。

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

as well as this one. 以及这个。
https://community.dynamics.com/gp/b/gpdynland/archive/2010/09/23/econnect-2010-fills-event-log-with-warning-34-distributed-transaction-was-used-34 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 -Randy

There is a flag in the eConnect API that you can configure in your app.config in order to disable the logging of these promotions. 您可以在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