場景:有一個WCF應用,添加服務引用後,自動生成一個app.config文件,當調用WCF時,它拋出一個錯誤:app
An endpoint configuration section for contract 'ServiceReference1.Service' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name.blog
解決方案:io
2. 刪除其中一個endpointcli