您的位置:首页 > 其它

无法加载协定为“XXXWebServiceSoap”的终结点配置部分,因为找到了该协定的多个终结点配置

2015-05-08 22:31 525 查看
错误描述:无法加载协定为“XXXWebServiceSoap”的终结点配置部分,因为找到了该协定的多个终结点配置。请按名称指示首选的终结点配置部分。

错误原因:该webservce在web.config里配置了两次:

<client>
<endpoint address="http://www.webxml.com.cn/WebServices/MobileCodeWS.asmx" binding="basicHttpBinding" bindingConfiguration="MobileCodeWSSoap1" contract="webserver.Mobile.MobileCodeWSSoap" name="MobileCodeWSSoap1"/>
<endpoint address="http://www.webxml.com.cn/WebServices/MobileCodeWS.asmx" binding="basicHttpBinding" bindingConfiguration="MobileCodeWSSoap1" contract="webserver.Mobile.MobileCodeWSSoap" name="MobileCodeWSSoap1"/>
</client>


处理方法:删除其中一个<endpoint>节点即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐