The Problem SolverWIndows Workflow Foundation
HomeShow ChangesEditPrintRecent ChangesSubscriptionsLost and FoundFind ReferencesRename



29-8-2008 17:42:036-12-2006 17:03:3417-11-2006 20:45:2717-11-2006 20:32:4527-10-2006 11:31:48

List all versions

Event Delivery Failed Exception

Error EventDeliveryFailedException

Typical error message:

 Event "Reply" on interface type "WorkflowConsoleApplication1.ISendMessage" for instance id "c968093d-16f3-4b48-94f6-372fc48a6c4e" cannot be delivered.

One frequent reason for this error is that the EventArgs class or any other type in the event, including sender, used is not marked as serializable. In this case you will find an InnerException with the text "EventArgs not serializable".

Even though the text complains about the EventArgs it could just as well be the sender parameter is is causing the problem. As this paramters is not used most of the time passing Nothing instead of Me is often enough to solve the problem.

Another possible reason is that the workflow you are sending a message to is already terminated. This might happen if your code is responding to an event that has already timed out allowing the workflow to terminate. The error is misleading in this case because the WorkflowRuntime doesn't know that the workflow has finished and tries to load it from the, in this case, non existent WorkflowPersistenceServices. In this case you will find an InnerException with the text "The workflow hosting environment does not have a persistence service as required by an operation on the workflow instance "SomeId"."

Note that if the Workflow is still executing after the DelayActivity has caused a timeout on the HandleExternalEventActivity the event doesn't raise an error but is never received either.

Wiki Usage

This wiki site is supposed to be a shared resource. As a shared resource everyone is encouraged to add new content or modify existing content!

Enjoy the WF wiki.

Recent Topics