After installing K2 Five 5.0 Fix Pack 19, when you try to deploy workflows using K2 Studio or Visual Studio, the deployment fails. K2 Studio reports no errors and no warnings. Visual Studio reports errors like 'The type or namespace name [typename] does not exist in the namespace 'SourceCode' (are you missing an assembly reference?)'
Screenshots of the behavior:
After installing Fix Pack 19 (or later), K2 workflow definitions should target .NET Framework 4.6.1. The workflow definitions for existing projects may not be updated to target this new version of the .NET Framework, and therefore deployment fails when you attempt to deploy the workflow to a K2 server.
To work around this issue, follow the steps below
- Use a text editor like notepad to open the .k2proj file of the project containing the workflow you want to deploy
- Find the following entry:
- Change that entry to the following:
- Save the *.k2proj file
- Open the project in K2 Studio/Visual Studio. Now you should be able to deploy the workflow