Skip to main content


 

Symptoms


I can deploy our workflow projects using K2 for Visual Studio into our development environment but when I create a Package and Deployment (.kspx) package and try to redeploy that, it errors with:

The following errors occurred while compiling the process (with framework version 4.0): Build started 10/13/2015 12:01:44 PM. Project "C:ProgramDataTemp512f3b1cdba445428bd4ce29f83e2668ProjectK2ProjectName.k2proj" on node 1 (Rebuild target(s)). CoreClean: Deleting file "C:ProgramDataTemp512f3b1cdba445428bd4ce29f83e2668ProjectobjDebugK2ProjectName.k2projResolveAssemblyReference.cache". Deleting file "C:ProgramDataTemp512f3b1cdba445428bd4ce29f83e2668ProjectobjDebugK2ProjectName.dll". C:ProgramDataTemp512f3b1cdba445428bd4ce29f83e2668ProjectK2ProjectNameProcess.kprx : warning : Unable to validate the environment field 'SmartObject Server'. The environment library is not connected.
 

Diagnoses


The process made use of additional .NET Sharepoint Runtime Client assembly references for custom code.
 

Resolution

1. Open this K2projectprocess in K2 for Visual Studio

2. Remove and Re-add the "Microsoft.Sharepoint.Client"/"Microsoft.Sharepoint.Client.Runtime"/custom .NET assembly references from the "Process References".

3. Rebuild and redeploy the workflow using K2 for Visual Studio

4. Recreate the (.kspx) using the Package and Deployment tool




 
Be the first to reply!

Reply