I am getting an error when deploying a K2 blackpoint process from K2 designer. The process deploys fine when logged in with the service account as well as my account but when a developer tries to deploy the same process he gets the following error message:
1 Error(s)
(Sox Apps) Task Error: System.Exception: Error creating the K2WorkflowIntegration list item. ---> System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SourceCode.SharePoint.WebServices.K2SPWorkflowAssociations.AddOrUpdateK2WorkflowListItem(String workflowName, String k2ServerName, String k2ManagementServerName, String listTitle, String sharePointIntegrationServiceSiteURL, String folio, String events, String metadatadetail, Boolean setUserPermissionsOnStart)
at SourceCode.Workflow.SharePoint.Common.WorkflowIntegration.AddK2WorkflowListItem(String siteURL, String processFullName, String k2ServerName, String k2ManagementServerName, String listTitle, String sharePointIntegrationServiceSiteURL, String folio, String events, String metadatadetail, Boolean setUserPermissionsOnStart, CredentialCache CredCache)
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.WorkflowIntegrationService.Execute(IntegrationObject integration, Boolean testMode, Boolean createDependancies)
--- End of inner exception stack trace ---
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.WorkflowIntegrationService.Execute(IntegrationObject integration, Boolean testMode, Boolean createDependancies)
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.WorkflowIntegrationTask.Execute()
The userid has admin,export and impersonate rights in the K2 management console.