When using a REST-Generated component in a workflow project, an error is generated. Perform the following to reproduce:
1. Build a web form project with REST service components.
2. Publish it to IIS.
3. Try to run the form from StartDialog.aspx page.
The form will not load. You will see an error message.
Workflow 7.6 and later
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=188.8.131.52, 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)
Data data, Stream stream) at LogicBase.Core.Generators.Components.RestBaseComponent.Run(IData data) at
data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context)
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 ---
The JSON core library called Newtonsoft.JSON.dll is not added to the published version of the project.
A fix will be provided in a later release. 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.
Subscribing will provide email updates when this Article is updated. Login is required.