0
  1. 我正在尝试处理错误并使用 Scope 将它们放入日志中。这是我使用的编排, 在此处输入图像描述 Expression_1 有

    System.Diagnostics.EventLog.WriteEntry("消息发送到目的地", "消息发送到目的地");

Expression_2 有

System.Diagnostics.EventLog.WriteEntry("Failed to send the message to destination", "Failed to send the message to destination --" + exception.ToString() );

Expression_3 有

System.Diagnostics.EventLog.WriteEntry("General Exception-- Failed to send the message to destination", "Caught GeneralException-- Failed to send the message to destination");

当消息发送没有错误时,它会显示在日志中。错误消息不显示我不知道为什么, 在此处输入图像描述

我不知道必须改变什么。

  1. 我也不知道如何在不使用 ESB 工具包的情况下构造错误消息并通过电子邮件发送。任何帮助是极大的赞赏。
4

2 回答 2

0

一般异常!= BizTalk 中的 System.Exception。尝试在第二个 Catch 范围内捕获 System.Exception。

于 2014-09-12T08:10:55.407 回答
0

因为您的 Catch Shape 未配置为捕获范围抛出的异常。

于 2014-09-11T17:40:08.417 回答