Workflow Persistence - WebServiceInputActivity
alt text http://home.elka.pw.edu.pl/~pkolodzi/Capture.PNG
I created an IAdder interface with two methods: PassA and PassB . My workflow starts with webServiceInputActivity1 , which is activated by a remote call to PassA . Another element of my workflow is another element, webServiceInputActivity2 . This time, the IsActivating property is set to false. I expect my workflow to be saved after the first activity finishes (which returns void). The workflow should be activated by calling the PassB web method.
After publishing the workflow as a web service and calling PassA, this is what I get:
System.InvalidOperationException: Workflow with id "b0c5f9dd-57f3-427f-b172-17d4663f7eaf" not found in state persistence store.
at System.Workflow.Runtime.Hosting.PersistenceDBAccessor.RetrieveInstanceState(Guid instanceStateId, Guid ownerId, DateTime timeout)
at System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService.LoadWorkflowInstanceState(Guid id)
at System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance)
at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)
at System.Workflow.Runtime.WorkflowRuntime.GetWorkflow(Guid instanceId)
at System.Workflow.Activities.WorkflowWebService.Invoke(Type interfaceType, String methodName, Boolean isActivation, Object[] parameters)
at PersistanceWebServiceWorkflow.Workflow1_WebService.PassA(Int32 a) in C:\Users\djpiter\AppData\Local\Temp\2dnwfnsn.cs:line 39
Do you have any idea what I am doing wrong?
ps :( The database is configured correctly. I tested it on a worker thread hosted in a console application and the delay activity. I also added the required line to the web.config file.)
Regards PC
a source to share