Issue
When trying to apply a Cumulative Update or Fix Pack, the installer encounter errors.
Reviewing the InstallerTrace logs reveal the following error:
20:34:30:>> DeployPackage.DataRecieved: Error: System.IndexOutOfRangeException: Index was outside the bounds of the array.20:36:30:>> Component.ExecuteTarget: Logged Error: Target did not complete successfully: App Wizard.kspx
When trying to manually deploy the 'App Wizard.kspx' from [Program Files]K2Setup with K2 Package and Deployment tool, the same error is thrown.
Following the steps in this article did not resolve the issue and the same error still gets thrown when applying the Cumulative Update or Fixpack, or deploying the 'App Wizard.kspx' package.
Resolution
- Edit K2HostServer.exe.config from [Program Files]K2Host ServerBin or [Program Files]K2 blackpearlHost ServerBin
- Search for "managerConfigFile". You should see this line:
<sourcecode.configuration managerConfigFile="C:Program Files (x86)K2 blackpearlConfigurationConfigurationManager.config" productPath="C:Program Files (x86)K2 blackpearlBin" templateConfigFile="" />
- Make sure the "managerConfigFile" is pointing to a path that exist. This should point to ConfigurationManager.config. If the path is wrong, update it.
- After updating the path, save the changes
- Restart K2 service
- Apply the Cumulative Update or Fix Pack again