I have a couple of components in a workflow project that are custom from the Rest Generator. The web service they communicate with returns a json formatted result. I have three Rest components generated from the one integration library.
These (the workflow and the components) work well in debug but have problems once published. I see exceptions as per the below. Sometimes restarting workflow solves the problem but not always.
Has anyone seen this before? The file C:\Program Files\Symantec\Workflow\Shared\lib\Newtonsoft.Json.dll is present and the workflows work just fine in debug.
System.Exception: Execution Engine Exception ---> System.Exception: Execution Exception ---> System.Exception: exception component created: ---> LogicBase.Framework.BusinessRuleException: The critical error failed execution on component [Name of my Component] : Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified. : at LogicBase.Core.Generators.Components.RestBaseComponent.ReadResponseJson(PathDefinition path, Stream stream) at LogicBase.Core.Generators.Components.RestBaseComponent.ReadResponseContent(IData data, PathDefinition path, Stream stream) at LogicBase.Core.Generators.Components.RestBaseComponent.Run(IData data) at LogicBase.Core.ExecutionEngine.MultiPathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context) at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunComponent(TLExecutionContext context, IData data, IOrchestrationComponent comp) --- End of inner exception stack trace --- at LogicBase.Core.ExecutionEngine.ExceptionComponentDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context) --- End of inner exception stack trace --- at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunEngine(List`1 executionQueue) --- End of inner exception stack trace --- at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunEngine(List`1 executionQueue) at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.ExecuteComponent(IData data, IOrchestrationComponent component) at LogicBase.Core.Models.EmbeddedDecisionModel.EmbeddedDecisionModelExecutionEngine.Run(IData data) at LogicBase.Components.Default.Workflow.WaitOnExternalEvent.HandleEscalation(String taskID, String workflowID, IData data, Int32 level)
The only other thing I have noticed is a warning when I open this project of "Duplicate Class Loaded: Automation.RestBaseComponent" which auto-closes.
Workflow 7.6..4383.487