Search

Search:

Namespace:

Search Result
.
                        throw new InvalidOperationException();
.
Note
THis will throw an InvalidOperationException with the message "The workflow hosting environment does not have a persistence service as required by an operation on the workflow instance "86051de9-2b21-4c93-8266-a78e69cc0f15"." if the requested workflow doesn't exist. This message even appears if no persistence service is used!
.
     ---> System.InvalidOperationException: Current session has no workflow instance 
.

When you use this you might receive a InvalidOperationException with message: 'StateHistory' property requires the 'System.Workflow.Runtime.Tracking.SqlTrackingService' service. This is because it uses the SqlTrackingService to retreive all previous states from.

.
                    throw new InvalidOperationException();