When I try to deploy a Sharepoint Events process with a user account which is not the K2 admin, I get this error:
Error 3 Task Error: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Cannot open log for source 'K2 SharePoint Web Services '. You may not have write access. ---> Access is denied
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.K2SPEvents.AddEventsToList(String workflowName, String listTite, K2SPObjectType sourceType, K2SPEventReceiverTypee] events)
at SourceCode.Workflow.SharePoint.Common.Events.AddEventsToList(String workflowFullName, String listTitle, K2SPObjectType objType, K2SPEventReceiverTypee] selectedEvents, Boolean isDocumentLibrary, CredentialCache credCache)
at SourceCode.DeploymentTasks.SharePoint.EventsService.AddEventsForListItems(EventsObject eventsObj, SharePointEventItem spEvent, String AllEvents)
at SourceCode.DeploymentTasks.SharePoint.EventsService.Execute(EventsObject eventsObj)
at SourceCode.DeploymentTasks.SharePoint.EventsTask.Execute()
Moreover, when I deploy such a process with the admin account, I can't create an instance with a user account!
My test process is very simple:
- a Sharepoint Events Process which starts when a document is added in a document library
- one activity with one Sharepoint Document event which moves the added document to another lib
If I add a document in the lib with the K2 admin account, ok, a new process instance is created, and everything is fine to the end, but if I add a document with a user account, nothing happens. I even set the account as site admin but it doesn't change anything (of course, I gave start permission in the K2 workspace).