我们刚刚将我们的一个应用程序移动到了一个新的2016服务器上,该应用程序是一个.net windows服务,而不是微软GP数据库服务器所在的域。
我们使用的是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
就像这个一样。
-Randy
发布于 2019-02-13 01:26:35
eConnect应用编程接口中有一个标志,您可以在app.config中配置该标志,以禁用这些促销的日志记录。
<?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>https://stackoverflow.com/questions/54138165
复制相似问题