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

        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和名称都一致。

原文地址:https://www.cnblogs.com/dowtowne/p/3435594.html