【发布时间】:2014-06-05 11:42:01
【问题描述】:
我的 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' 已添加。
不允许吗。
【问题讨论】:
标签: c# app-config configurationsection