Troubleshooting Exceptions: System.Workflow.Runtime.Hosting.PersistenceException

A PersistenceException exception is thrown when the persistence service cannot fulfill a request.

The SqlWorkflowPersistenceService throws a PersistenceException if it cannot complete a request to commit either a completed scope or the workflow instance state to its database.

If you implement a persistence service by deriving from the WorkflowPersistenceService class or the SqlWorkflowPersistenceService class, you can throw the PersistenceException with an appropriate message to indicate any error condition encountered by your service that prevents it from fulfilling a request made by the workflow runtime engine.

See WorkflowPersistenceService for more information.

Community Additions