【发布时间】:2009-11-19 09:30:42
【问题描述】:
我正在尝试用我自己的处理程序替换“客户端”处理程序的默认 machine.config 设置,但是,当我运行它时,我收到了这个错误:
“已定义部分或组名称‘client’。对此的更新只能在定义它的配置级别发生。”
这是我的 app.config 的样子:
<configuration>
<configSections>
<remove name="client"/>
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="client" type="xyz.Messaging.CustomClientSection, Point.Messaging" />
</sectionGroup>
</configSections>
如果您知道为什么它似乎没有删除此部分(正如人们所期望的那样)并给我这个错误,请告诉我。
谢谢。
【问题讨论】:
标签: wcf app-config