2013-04-04 57 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屬性不允許使用」),但它仍然可以正常工作。