我的 app.config 中有以下内容:
<XPathFilter>
<outbound>
<filter **message="ProductChangeMessage"** xpath="//acs:productDetails[acs:productType = 'Loan']" />
<filter **message="ProductChangeMessage"** xpath="//acs:productDetails[acs:productType = 'Test']" />
</outbound>
</XPathFilter>
我有一组用于从这里读取元素的类......它们工作正常,除非 2 个过滤器具有相同的消息值。我明白了
System.Configuration.ConfigurationErrorsException:已添加条目“ProductChangeMessage”。
是不是不允许。