首页 > Web开发 > 详细

webservice加载异常

时间:2015-05-14 00:46:34      阅读:308      评论:0      收藏:0      [点我收藏+]

System.InvalidOperationException: 无法加载协定为“ServiceReference1.SMS_BlueWingsInfoSoap”的终结点配置部分,因为找到了该协定的的多个终结点配置。请按名称指示首选的终结点配置部分

解决方案:原因是同一个webservice你在web.config里配置了两个,删掉一个就好了。 <client> 下的<endpoint> 重复调用了就删掉一个!就好了

web.config配置文件里的(错误)

 

 <client>
      <endpoint address="http://116.213.72.20/SMS_BlueWings/SMS_BlueWingsInfo.asmx"
        binding="basicHttpBinding" bindingConfiguration="SMS_BlueWingsInfoSoap"
        contract="ServiceReference1.SMS_BlueWingsInfoSoap" name="SMS_BlueWingsInfoSoap" />
      <endpoint address="http://116.213.72.20/SMS_BlueWings/SMS_BlueWingsInfo.asmx"
        binding="basicHttpBinding" bindingConfiguration="SMS_BlueWingsInfoSoap2"
        contract="ServiceReference1.SMS_BlueWingsInfoSoap" name="SMS_BlueWingsInfoSoap2" />

    </client> 

 

webservice加载异常

原文:http://www.cnblogs.com/hui1107464497/p/4502096.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!