An endpoint configuration section for contract "serviceReferenc.service" could not be loaded
2013-12-04 17:41
519 查看
场景:有一个WCF应用,添加服务引用后,自动生成一个app.config文件,当调用WCF时,它抛出一个错误:
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.
解决方案:
打开app.config文件,你可以看到<client> 标签下有2 个endpoint (因为你的WCF配置文件里定义了2个endpoint, 如果在WCF 配置文件里删除一个endpoint, 此时添加服务引用后它将生成一个)
2. 删除其中一个endpoint
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.
解决方案:
打开app.config文件,你可以看到<client> 标签下有2 个endpoint (因为你的WCF配置文件里定义了2个endpoint, 如果在WCF 配置文件里删除一个endpoint, 此时添加服务引用后它将生成一个)
2. 删除其中一个endpoint
相关文章推荐
- 各种javascript框架
- jQuery插件 -- Form表单插件jquery.form.js
- JS事件大全
- extjs 怎么查看属性
- javascript实现的棋牌类
- Js封装html的一些代码
- pager-taglib的使用(jsp分页)
- Javascript调用MsRdpClient 完成Web调用远程桌面
- jquery 背景图幻灯片
- jQuery Mobile 入门教程
- NVelocity 表格行奇偶样式变换
- javascript设置金额样式转换保留两位小数示例代码
- 史上最全的css hack
- JS获得QQ号码的昵称,头像,生日的简单实例
- JavaScript执行顺序详细介绍
- js中把new Date().getTime()时间戳转化成日期类型
- 2013.12.04 JS实现单元格的合并
- 深入理解JavaScript中的this关键字
- jQuery对话插件 artDialog
- Html.ActionLink 参数