When using a REST-Generated component in a workflow project, an error is generated. Perform the following to reproduce:
The form will not load. You will see an error message.
System.Exception: Execution Exception ---> System.Exception: exception Component created: ---> LogicBase.Framework.BusinessRuleException: The critical error failed execution on component People : 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(Stream stream)
At LogicBase.Core.Generators.Components.RestBaseComponent.ReadResponseContent(I
Data data, 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 ---
ITMS 8.x
Workflow 8.x
As a workaround, add the Newtonsoft.Json.dll manually to the project, and, while publishing, make sure it is listed under Libraries tab, and properly checked in Publish checkbox. You can also copy the file to the ...Program Files\Symantec\Workflow\Shared folder so that it can be referenced.
NOTE: In one case the Newtonsoft.Json.dll also had to be manually place in the C:\Program Files\Symantec\Workflow\WorkflowDeploy\Release\CT.WS.IG.SYM\bin folder.