Could not find default endpoint element that references contract 'wcfXXXXXXXXXXX' in the ServiceMode

来源:互联网 发布:淘宝美工专业术语 编辑:程序博客网 时间:2024/05/17 13:09

http://blog.csdn.net/burgess_liu/article/details/7698682

问题: 同一支wcf,在有些prject里引用后,使用中无任何问题;但有些报如下错误:

Could not find default endpoint element that references contract 'wcfXXXXXXXXXXX' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

解决:结合报错信息,同时比对系统发现,报错的系统有两个app.config,而正常运行的只有一个,于是就将两个config进行同步,也就是把wcf所对应的config里的内容复制到另一个project中的config中去,问题解决……

无语了.......

0 0
原创粉丝点击