2013-04-04 59 views
1

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

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

回答

0

你应该尽量把你的configSource属性客户端元素。

Visual Studio将其标记为错误(“configSource属性不允许使用”),但它仍然可以正常工作。

相关问题