Workflow Foundation 4 - DeclarativeServiceLibrary - Error while calling second ReceiveAndSendReply

Posted by dotnetexperiments on Stack Overflow See other posts from Stack Overflow or by dotnetexperiments
Published on 2010-03-13T06:04:24Z Indexed on 2010/03/13 6:15 UTC
Read the original article Hit count: 565

Hi,

I have created a DeclarativeServiceLibrary using VS2010 beta 2,
Please check this image of Sequential Service
alt text

Following is the code used to call these two activities ` int? data = 123;

        ServiceReference1.ServiceClient client1 = new ServiceReference1.ServiceClient();
        string result1 = client1.GetData(data);

        //This line shows error :(
        string result2 = client1.Operation1();

        Response.Write(result1 + " ::  ::" + result2);`  

client1.GetData works perfectly, but client1.Operation1 show the following error. Please let me know how to fix this.

There is no context attached to the incoming message for the service and the current operation is not marked with "CanCreateInstance = true". In order to communicate with this service check whether the incoming binding supports the context protocol and has a valid context initialized.

© Stack Overflow or respective owner

Related posts about workflow-foundation-4

Related posts about wcf