尝试获取ExceptionPolicyImpl类型的实例时发生激活错误 [英] Activation error occured while trying to get instance of type ExceptionPolicyImpl

查看:96
本文介绍了尝试获取ExceptionPolicyImpl类型的实例时发生激活错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

H 我在那里,

我得到一个COM例外,我不知道该怎么做。

I get a COM Exception and am not sure what to make of that.

错误来来去去,它不是显示两天,然后突然再次出现。 

它肯定与BizTalk中的一个ReceiveLocations,因为它甚至  重复  每
10秒(RL配置的精确轮询时间间隔)

TeeTee.WrkMgmtIF.Pipelines.ReceiveSPWorkOrderFromSQL,TeeTee.WrkMgmtIF.Pipelines,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = f4bb38a140c6efd8 

TeeTee.WrkMgmtIF.Pipelines.ReceiveSPWorkOrderFromSQL, TeeTee.WrkMgmtIF.Pipelines, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4bb38a140c6efd8 

    TeeTee.SQLDisassembler 

    ReceiveSPTransmission_SQL 

    mssql:// Test-SQL01 / SQL2012 / WIfaceDb? 

   尝试获取ExceptionPolicyImpl类型的实例时出现激活错误,关键字"开发日志策略" 

   TeeTee.SQLDisassembler 
   ReceiveSPTransmission_SQL 
   mssql://Test-SQL01/SQL2012/WIfaceDb? 
   Activation error occured while trying to get instance of type ExceptionPolicyImpl, key "Development Log Policy" 

上帝保佑你们所有人:)

God bless you all :)

推荐答案

嗨 

Hi 

检查BizTalk配置文件/ machine.config文件,似乎由于不正确而从EnterpriseLibrary记录块中抛出错误由密钥"开发日志策略"指定的配置设置。请检查在同一时间是否有更多事件
,这将提供更多提示。可能类似于这个。

Check the BizTalk config file/machine.config file , it seems the error is being thrown from the EnterpriseLibrary Logging Block due to an incorrect config setting specified by the key "Development Log Policy". Please check if there are more events around the same time, that will give more hints. Probably similar issue to this.

根本原因可能是您在COMException中看到的警告。可能由于Transaction TimeOut而发生 -

But the root cause is probably the Warning that you see for COMException. May happen due to Transaction TimeOut-

http://blog.brandt-lassen。 dk / 2012_11_01_archive.html

解决方案:

https://blogs.msdn.microsoft.com/ajit/2008/ 06/18 / override-the-system-transactions-default-timeout-of-10-minutes-in-the-code /

在机器中添加以下部分根目录中的.config文件< configuration>将maxTimeout设置为1小时的部分。更改后重新启动主机实例:

Add the following section in the machine.config file inside the root <configuration> section to set the maxTimeout to 1 hour. Restart Host Instances after the change :

 <system.transactions>
   <machineSettings maxTimeout="01:00:00″ />
 </system.transactions>

此外,请确保BizTalk配置文件( btsntsvc.exe.config和BizTalk安装文件夹中的btsntsvc64.exe.config没有指定较低的超时。如果不存在,则无需添加。如果存在,该条目看起来类似于
以下,并且超时值必须至少等于 $上方的maxTimeout值。 b $ b -

Also, make sure that the BizTalk config files(btsntsvc.exe.config and btsntsvc64.exe.config present in BizTalk installation folder) do not have a lower timeout specified. If not present, no need to add it. If present, that entry will look similar to below and the timeout value needs to be atleast equal to the maxTimeout value above -

<system.transactions>
<defaultSettings timeout="01:00:00″ />
</system.transactions>





这篇关于尝试获取ExceptionPolicyImpl类型的实例时发生激活错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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