I am trying to connect to the server to get global worklists.
I've just tried the code from the K2 BP Developers Reference, but have been having just enough troubles getthing thorough connection problem.
The code looks like this below. I am not sure what went wrong and would really appreciate the help!
I am running the code on the server machine (K2 BP SP1), which is the vpc machine running Windows 2003 SP2.
string server = "mossvpc";
string host = "localhost";
string user = "admin1"; // example admin user name (admin in local mahine as well as K2)
string password = "admin1";
uint port = (uint) 5556; // K2 Host server is set up to use 5556 port.
WorkflowManagementServer workflowServer = new WorkflowManagementServer(
server, port, user, password, "K2", true);
workflowServer.Open();
When I run this code on ASP.NET form on the server, I get this error:
"Requested Authentication Provider not hosted
at SourceCode.Workflow.Management.WorkflowManagementServer.Open()...."
Instead of using the server name, I changed to using the host name.
WorkflowManagementServer workflowServer = new WorkflowManagementServer(
host, port, user, password, "K2", true);
workflowServer.Open();
And I still got the same error.
I also changed the port number from 5556 to 5252 (K2 server port).
Then I got this error:
"Error Receiving Buffer
at SourceCode.Workflow.Management.WorkflowManagementServer.Open()..."
Console error for the above one showed:
Debug 8047 Connected to 172.17.1.8:1 Bytes From 8
Debug 8039 Receiving 172.17.1.8.:1
Error 8050 Received BAD Header From 172.17.1.8:1
While I can't connect to the workflow server from the code, Workspace works fine and displays all processes and runs reports without problems.
Why is it that I can't seem to get connection from the code?