The following error occurs while trying to deploy a project using K2 for Visual Studio:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
This was caused by a missing SmartObject configuration. The GUID of the SmartObject causing the issue was returned by running through the Smartforms client events in the process.
The error was caused by a missing Workspace SQL Service configuration. The service was reconfigured, and the error was resolved.