I am trying to use ZoneCalculateEvent to get the due date for an item, taking into account working days specified on the K2 server. However, everytime I call ZoneCalculateEvent it throws the following: "exception: The ConnectionString property has not been initialized.". Following is the example code...does anyone have any ideas? We've given the account specified in our connection string all the permissions we can think of. Thanks in advance for any ideas houghts! Also, some WorkflowManagementServer functions seem to work, but definitely not ZoneCalculateEvent.
WorkflowManagementServer workflowManagementServer = new WorkflowManagementServer();
workflowManagementServer.CreateConnection();
workflowManagementServer.OpenEx(WMS_CONNECTION_STRING); //tried Open as well with same results. OpenEx always returns true in my tests
Date Time dueDate = workflowManagementServer.ZoneCalculateEvent(DateTime.Now, timeSpan);