我在web.config中有这个部分:
<system.serviceModel>
<behaviors configSource="Configuration\Active\ServiceModelBehaviors.config" />
<services configSource="Configuration\Active\ServiceModelServices.config" />
<bindings configSource="Configuration\Common\ServiceModelBindings.config" />
<client configSource="Configuration\Active\ServiceModelClient.config" />
</system.serviceModel>
我想添加另一个具有不同路径的客户端部分以防止配置重复:
<system.serviceModel>
<behaviors configSource="Configuration\Active\ServiceModelBehaviors.config" />
<services configSource="Configuration\Active\ServiceModelServices.config" />
<bindings configSource="Configuration\Common\ServiceModelBindings.config" />
<client configSource="Configuration\Active\ServiceModelClient.config" />
<client configSource="Configuration\Common\ServiceModelClient.config" /> <!-- this -->
</system.serviceModel>
我知道某个部分只能出现一次。无论如何我可以解决这个问题吗?像部分部分或什么?