I have a *.xamlx workflow service running in IIS and have State1, State2 and State3.
Trigger T1 (State 1 -> State 2) listens to "Start" message on Receive Activity.
Trigger T2 (State 2 -> State 3) listens to "Proceed" message on Receive Activity.
The problem I have is that i expect something like InvalidOperationException when my state machine is in State 1 and "Proceed" message is coming. However, it looks like it is just awaiting in queue and fails with timeout exception.
How do I get an expected behavior here?
I'm just pasting here an answer I got from Jim Carley - MSFT at MSDN forums so that it doesn't disappear after some years.