Service本身没有问题,但是调用的时候,只在DataAccessSilverlight里引用了,而在主工程WebGISDemo里没有引用服务PowerDataServiceReference,所以会出现不一致的冲突。

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.

解决方法:

在主工程WebGISDemo里也引用Service“PowerDataServiceReference”,最好引用的IP和名称都一致。

最新文章

  1. Counter Mode ( CTR )
  2. 【DFS】POJ 1321
  3. spark-submit 分发应用
  4. javascript 设计模式-----策略模式
  5. JAVA 集合List、Map、Set
  6. 膜拜(codevs 3369)
  7. Choosing proper innodb_log_file_size
  8. C++中的INL
  9. SCJP_104——题目分析(3)
  10. Root exploit for Android (adb setuid)
  11. Winform中上传、下载文件选择打开文件的位置
  12. poj1935(树形dp)
  13. OCP读书笔记(26) - 题库(ExamF)
  14. 摘抄自知乎的redis相关
  15. ionic1 打包过程 常用命令行
  16. Actifio中如何分析Oracle备份恢复的报错
  17. Reading | 《Linux就该这么学》
  18. 《Migrating to Cloud-Native Application Architectures》学习笔记之Chapter 2. Changes Needed 原
  19. gradle 两种更新方法
  20. Linux调试分析诊断利器——strace

热门文章

  1. 【luogu3733】【HAOI2017】 八纵八横 (线段树分治+线性基)
  2. limits.conf文件工作原理
  3. 通过jpa getResultList 获取查询到的内容
  4. js判断一个字符串是以某个字符串开头
  5. js 判断字符串中是否包含某个字符串
  6. bzoj3900 交换茸角
  7. Day10--Python--动态传参,作用域
  8. Ubuntu的 g++ gcc版本升降级
  9. ElasticSearch6.5.0 【Rejecting mapping update to [posts] as the final mapping would have more than 1 type】
  10. 使用pip cmd安装包