I have deployed a K2 project for development successfuly. When I moved the project files across to test box and deploy it from the K2 studio in the test box, I got the error below. It was deployed successfully if I did it from the K2 Studio in dev box by changing the environment fields. However, I can't deploy the project from the same box all the time.
1 Error(s)
Task Error: System.UriFormatException: Invalid URI: The URI is empty.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at SourceCode.Workflow.Common.Authentication.ADCredentials.AddCredentials(CredentialCache currentCache, NetworkCredential newCredentials, String serverUrl)
at SourceCode.Workflow.Common.Authentication.ADCredentials.GetCredentials(String serverUrl)
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.WorkflowIntegrationTask.UpdateWorkflowIntegration()
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.WorkflowIntegrationTask.Execute()