Event [EventName] on interface type [InterfaceName] for instance ID [GUID] cannot be delivered. error in state machine workflow
Here’s a strange error when I try the state machine
workflow.
Event [EventName] on interface type [InterfaceName] for
instance ID [GUID] cannot be delivered.
So I find the solution here.
http://www.infoq.com/articles/HandleExternalEvent-in-Windows
2 ways to solve this:
1. Set
the sender of the event null as it says in article
if (evh != null)
evh(null, args);
2. Mark
the local service [Serializable]
[Serializable]
class
PaymentProcessingService : IPaymentProcessingService{ … }
Happy workflow.