Biztalk 2010使用业务流程中的作用域处理异常
我正在尝试处理错误,并使用作用域将它们放入日志中。这是我使用的配器, 表达式_1具有 System.Diagnostics.EventLog.WriteEntry(“发送到目标的消息”、“发送到目标的消息”) 表达式_2具有Biztalk 2010使用业务流程中的作用域处理异常,biztalk,biztalk-2010,biztalk-orchestrations,Biztalk,Biztalk 2010,Biztalk Orchestrations,我正在尝试处理错误,并使用作用域将它们放入日志中。这是我使用的配器, 表达式_1具有 System.Diagnostics.EventLog.WriteEntry(“发送到目标的消息”、“发送到目标的消息”) 表达式_2具有 System.Diagnostics.EventLog.WriteEntry("Failed to send the message to destination", "Failed to send the message to destination --" + exce
System.Diagnostics.EventLog.WriteEntry("Failed to send the message to destination", "Failed to send the message to destination --" + exception.ToString() );
表达式_3具有
System.Diagnostics.EventLog.WriteEntry("General Exception-- Failed to send the message to destination", "Caught GeneralException-- Failed to send the message to destination");
当消息发送时没有错误,它会显示在日志中。有错误的消息没有显示我不知道为什么,
我不知道有什么需要改变
因为您的捕获形状未配置为捕获从作用域引发的异常。常规异常!=BizTalk中的System.Exception。
尝试捕获系统。在第二个捕获范围中捕获异常。在第二个捕获范围中尝试捕获异常。您试图在CatchException_1和CatchException_2中捕获什么异常?是否已将传递通知设置为已传递?