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

+1


a source to share


1 answer


If one of your actions throws an exception, the workflow status information will be removed from the database. Run the workflow debugger with the "break when exception is throw" setting in Debug - Exceptions - Regular Language Runtime Exceptions



0


a source







All Articles