Missing Service Does Not Throw Exception

I am usingInvokeMethod to call into aDataExchangeService. However, if the service was not added to theWorkflowRuntime before the activity is executed the workflow hangs and the process consumes 99% of the CPU.WorkflowRuntime.ExceptionNotHandled is not fired.
[330 byte] By [JaredBienz] at [2008-2-21]
# 1

Jared,

This is a bug in the InvokeMethod which does not check for the missing service until execution time. The check should be made while initializing. In either case, the WorkflowRuntime.ExceptionNotHandled would not be thrown if the service is missing. This is thrown only when the exception is not related to the workflow thread and is thrown outside the workflow thread for e.g. by the persistance service.

I shall try to repro your error and follow up the issue with the Dev team.

Thanks,

Vihang

vihang at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2
Thanks for forwarding that to the dev team. Where should this exception be caught? Through the standard exception flow? I thought all exceptions went through the exception flow and then fell out to WorkflowRuntime.ExceptionNotHandled if not explicitly handled...
JaredBienz at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified