本文介绍了WorkflowApplication和OnUnhandledException问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WorkflowApplication对象来安排运行我的工作流.我正在使用适当的处理程序设置Completed,Aborted和OnUnhandledException.工作流程成功完成后,我将到达已完成"处理程序.但是,当我的工作流程引发异常时,它只会死于线程终止的异常.我没有到达OnUnhandledException处理程序.

I'm using a WorkflowApplication object to schedule running my workflows.  I am setting Completed, Aborted, and OnUnhandledException with appropriate handlers.  When my workflow completes successfully, I reach my Completed handler.  However, when my workflow throws an exception, it just dies with a thread terminated exception.  I do not reach my OnUnhandledException handler.

有什么用?

查克

推荐答案

有什么例外,您知道发生了什么活动吗?它以及活动的哪一部分?听起来确实不寻常.是否有可能以某种方式引发了新的异常并使其从OnUnhandledException处理程序中逃逸了?这可能会导致异常行为.

What is the exception and do you know what activity is throwing it and from what part of the activity? That does sound unusual. Is it possible that a new exception is being thrown somehow and escaping from your OnUnhandledException handler? This could cause unusual behavior.

Steve Danielson [Microsoft]
该帖子按原样"提供.
使用包含的脚本示例必须遵守 http://www.microsoft.com/info/cpyright.htm

Steve Danielson [Microsoft]
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

 


这篇关于WorkflowApplication和OnUnhandledException问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 16:16