Missing Service Does Not Throw Exception
I am using
InvokeMethod to call into a
DataExchangeService. However, if the service was not added to the
WorkflowRuntime before the activity is executed the workflow hangs and the process consumes 99% of the CPU.
WorkflowRuntime.ExceptionNotHandled is not fired.
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
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...