Registry Access Error in Business Rules Engine

Home Page Forums BizTalk 2004 – BizTalk 2010 Registry Access Error in Business Rules Engine

Viewing 1 reply thread
  • Author
    Posts
    • #16429

      hi.. I  am getting an error while accessing a BRE policy from orchestration..

      Anyone has any ideas..? Really appreciate your response

       

      Microsoft.RuleEngine.PolicyExecutionException: An exception occurred inside the rule engine instance executing policy "ALTAThirdPartyLeadImportRepAssignment". —> Microsoft.RuleEngine.RuleEngineRuntimeMemberInvocationFailureException: An exception occurred when invoking class member Cmc.Integration.ALTA.BusinessRules.RepAssignment.GetCurrentlyAvailableRep in assembly Cmc.Integration.ALTA.BusinessRules, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8c3fec8e866b74b1. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Security.SecurityException: Requested registry access is not allowed.

         at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)

         at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)

         at System.Diagnostics.EventLog.CreateEventSource(EventSourceCreationData sourceData)

         at System.Diagnostics.EventLog.CreateEventSource(String source, String logName)

         at Cmc.Integration.ALTA.BusinessRules.RepAssignment.GetCurrentlyAvailableRep(String CampusCode, Int32 RepType, String PlaceHolderRep)

      The Zone of the assembly that failed was:

      MyComputer

         — End of inner exception stack trace —

         at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

         at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

         at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

         at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

         at Microsoft.RuleEngine.Rete.ClassMemberMethod.Invoke(Object classObject, Object[] parameters)

         — End of inner exception stack trace —

         at Microsoft.RuleEngine.Rete.Rete.ProcessException(Exception ex)

         at Microsoft.RuleEngine.Rete.Rete.ExecuteInternal(Object facts, Object data)

         at Microsoft.RuleEngine.Rete.Rete.ProcessingLoop(Operation operation, Object facts, Object data, EngineState nextState)

         at Microsoft.RuleEngine.Rete.Rete.Execute(Object facts)

         at Microsoft.RuleEngine.Policy.ExecuteInternal(Object facts)

         — End of inner exception stack trace —

         at Microsoft.RuleEngine.Policy.ExecuteInternal(Object facts)

         at Microsoft.RuleEngine.Policy.Execute(Object facts)

         at Microsoft.RuleEngine.Policy.Execute(Object[] facts)

         at Cmc.Integration.ALTA.LeadImport.BusinessProcess.ImportLead.segment6(StopConditions stopOn)

         at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

      Microsoft.RuleEngine.PolicyExecutionException

      Scoped@

      ImportLead.??__scope35

      ImportLead.Txn_CallBRE

      ImportLead.Transaction_1

      ImportLead.ImportLead

      00000000-0000-0000-0000-000000000000

       

    • #16452

      Well, you can see that the rule is failing when calling the fact: class member Cmc.Integration.ALTA.BusinessRules.RepAssignment.GetCurrentlyAvailableRep

      So, do you know what that method does?  If it access the registry, then the user account running the Rules Engine (RulesEngineUpdateService) would need permission to that key.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.