Symptoms
Cannot deploy a workflow containing Smartforms task from K2 for SharePoint 2013 app.
When we select Deploy, we get the following error in SharePoint:
System.IO.FileNotFoundException: Could not load file or assembly 'SourceCode.WebDesigner.Authoring.ClientEvent.FormsClientEvent, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d' or one of its dependencies. The system cannot find the file specified.
Diagnoses
This issue is specific to distributed environment. The environment is setup as distributed environment (Server A: K2 Hostserver component, Server B: SF components+K2workspace site). When deploying K2 workflow, the call is sending back to Server A and this is where the problem starts to happen.
Resolution
Gac the 'SourceCode.WebDesigner.Authoring.ClientEvent.FormsClientEvent? 32 bits DLL on the K2 Hostserver (Server A) and restart the K2 Hostserver service to resolve the issue.