[英]Biztalk 2010 handling exception using the scope in Orchestration
我正在尝试处理这些错误,并使用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");
发送消息无误时,它将显示在日志中。 错误消息未显示,我不知道为什么,
我不知道必须更改什么。
因为您的“捕获形状”未配置为捕获从范围抛出的异常。
常规异常!= BizTalk中的System.Exception。 尝试在第二个Catch范围内捕获System.Exception。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.