1

我有一个 Web 应用程序,我想在其他配置文件(而不是 Web.config)中设置我的端点。这个怎么做?
我尝试configSource在某些标签中设置属性,但它不起作用。
Web.config 的结构:

<configuration>
  //Some configurations
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        //Some bindings
      </basicHttpBinding>
    </bindings>
    <client>
      //Endpoints
    </client>
  </system.serviceModel>
</configuration>
4

1 回答 1

0

您应该尝试将您的configSource属性放在客户端元素上。

Visual Studio 会将其标记为错误(“不允许使用 configSource 属性。”),但无论如何它应该可以工作。

于 2013-04-04T08:41:07.753 回答