Skip to main content


 

Symptoms


Error connecting to WorkflowManagementServer. When using the SourceCode.Workflow.Management.WorkflowManagementServer Open method to attempt to connect to the server, the system returns:

An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in SourceCode.Workflow.Management.dll
Additional information: Length cannot be less than zero.

Although this is happening in Prod, it also happens in our Dev environment. This code used to work and the code hasn't been touched in years.


 

Diagnoses




A connection wasn't made to the K2 Server using the K2 API. An second error showed "An Invalid archive type" issue. This issue is associated with discrepancy between Client and Server K2 Versions.

 

Resolution



After downgrading the client tools to match the K2 Server Version (4.6.7), everything worked as expected. The client tools were on K2 Blackpearl 4.6.11.




 
Be the first to reply!

Reply