Strange Exception  
Author Message

PostPosted: Windows Workflow Foundation, Strange Exception Top


Waht did I do wrong I have two workflow instances running and want to deliver an Event to on of the Workflow Instances.

When I try to raise the event I get the following error.

Handling the idEvent 20924, Type [SAPOrderIMEIUpdated] raised the error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Workflow.Activities.EventDeliveryFailedException: Event "SAPOrderIMEIUpdated" on interface type "One.Webshop.OrderHandling.Workflow.DataExchange.IWebshopOrderDataExchange" for instance id "599efbcb-1194-4444-87b1-9551fc9a1a51" cannot be delivered. ---> System.Runtime.Serialization.SerializationException: The object with ID 668 implements the IObjectReference interface for which all dependencies cannot be resolved. The likely cause is two instances of IObjectReference that have a mutual dependency on each other.

What does this mean What should I do

I have the Beta 2.2 rc


Software Development for Windows Vista14  
Matt Milner - Pluralsight

PostPosted: Windows Workflow Foundation, Strange Exception Top

This looks like the error is caused by some state in your event arguments not being serializable. More specifically, it looks like you might have some SAP object that is not serializable.

You could implement some custom serialization in your event arguments class, but I'm guessing you're going to continue to have issues with managing the state of that object.

I'd suggest doing some research on the feasibility of serializing that type.