Issue

When deploying  a K2 package using MSBUILD in an upgraded K2 environment, you may receive an "Invalid Archive Type" error as follows:

Error","General","28083","ExtenderExecuteError","ProcessInstance.HandleException","28083 ServerEvent: Invalid archive type
InnerException: Invalid archive type"

Cause

When you create packages with MSBUILD on a different version of K2, and then deploy the package using MSBUILD on an environment that is upgraded, there is a mismatch between the packaged assemblies and the assemblies on the target environment. The package cannot be opened which results in the "Invalid Archive Type" error.

Resolution

To resolve the issue, recreate the MSBUILD package on the upgraded K2 version and then deploy.