I understand I may be doing this wrong. I read the topic at http://social.msdn.microsoft.com/Forums/en-CA/wfprerelease/thread/a11eb75d-65de-4787-9745-2fd634d0eee9 but I still don't get it, exactly.
I have an application that uses WorkflowApplications to handle the workflows. I have a workflow that contains a one minute Delay activity. When this activity is hit, the workflow Idles, persists (SqlWorkflowDataStore), and unloads. This is all fine. If the app runs for the minute, it will be resumed and will complete.
However, if I stop the app during the minute that it is delayed, and then start it up again at some point later, the workflows do not resume. A little digging shows that WorkflowApplication does not resume automatically, and that I have to do that manually. That's fine. The problem is, I don't know how.
I see there is a WorkflowApplication.LoadRunnableInstance, and I see in the db that there are records in the RunnableInstancesTable table. But when I call LRI, I get back this:
System.Runtime.DurableInstancing.InstancePersistenceCommandException was unhandled
Message=In order to match and load a runnable instance in the store, the requesting InstanceOwner must have specified a workflow host type when it was created. To do so, add a key-value pair to the CreateWorkflowOwner
View Complete Post