我已经配置了新的虚拟机,因为我遇到了与BRE处理的问题,现有的VM主机的BizTalk Server 2006的副本(MS虚拟运行Windows Server 2003服务器)。该策略部署和词汇准确地发布为在工作VM。

这是业务流程调用辅助部件这又使得使用BRE组件。在这似乎执行辅助部件中的最后一行是:

Policy workflowPolicy = new Policy(policyName)

我已经从下面的事件日志粘贴堆栈跟踪

Exception type: InvalidCastException
Source: Microsoft.RuleEngine
Target Site: Int32 GetInt32(System.String, Int32)
The following is a stack trace that identifies the location where the exception occured
   at Microsoft.RuleEngine.Configuration.GetInt32(String key, Int32 defaultValue)
   at Microsoft.RuleEngine.ReteTranslator.RuleSetToReteTranslatorImpl.Translate(RuleSet ruleset, Int32 duration)
   at Microsoft.RuleEngine.ReteTranslator.RuleSetToReteTranslator.Translate(RuleSet ruleset, Int32 duration)
   at Microsoft.RuleEngine.RuleEngine..ctor(RuleSet ruleSet, Boolean doOptimizations)
   at Microsoft.RuleEngine.RuleEngineCache.Allocate(String rulesetName, Int32 majorRevision, Int32 minorRevision, TrackingConfiguration& trackingConfig)
   at Microsoft.RuleEngine.RuleEngineCache.Allocate(String rulesetName, TrackingConfiguration& trackingConfig)
   at Microsoft.RuleEngine.Policy..ctor(String policyName)
   at Tesco.BRE.Services.PolicyServices.Direct.OrderWorkflowServices.Commands.GetNextTaskList.Execute()
   at Tesco.DataSources.Integration.Common.CommandBase.CommandDecorators.CommandLoggingDecorator`1.Execute()
   at Tesco.DataSources.Integration.Common.CommandBase.CommandUtilities.GetCommandResponse[T](CommandBase`1 command)
   at Tesco.BRE.Services.PolicyServices.Direct.OrderWorkflowServices.OrderWorkflowOperations.GetNextTaskList(String currentTaskName, String currentTaskStatus, XmlDocument order)
   at Tesco.Direct.OrderManagement.Orchestrations.FollowTaskResult.segment2(StopConditions stopOn)
   at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception&

它看起来像Microsoft.RuleEngine.Configuration.GetInt32正在传递的是不能转换为Int32?

的值

我曾尝试未配置/重新配置BRE。至于我可以告诉大家在新服务器上一切内容都符合配置为每个工作服务器。

任何帮助,感激地接受 - 我一直坚持这一整天

有帮助吗?

解决方案 2

感谢您的答复马丁。我现在已经解决了该问题。问题是在做一个注册表更改用户错误(我的)。我必须创建一个reg设置如下

HKLM\SOFTWARE\Microsoft\BusinessRules\3.0\StaticSupport (DWORD), value 2

为了使BRE利用的静态方法。 http://technet.microsoft.com/en-us:这是在描述/library/dd298814.aspx

虽然我配置服务器时所取得的此外,我曾无意中使用一个字符串,而不是一个双字。由于这花了我在一天搞清楚! - 我不会很快犯同样的错误任何时候

其他提示

如果一个跟随堆栈跟踪一个能读“缓存”和“跟踪”。我会尝试重新启动主机,并取消任何规则在HAT跟踪。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top