zoukankan      html  css  js  c++  java
  • 无法加载协定为“JavaWebService.UserInfoDelegate”的终结点配置部分,因为找到了该协定的多个终结点配置。请按名称指示首选的终结点配置部分。

    原因是:

    在vs 2008中使用C#,多次添加/删除服务引用后,app.config文件并不会自动修改,

    在添加/删除后,会生成多个“endpoint”,手工删除即可。

    app.config中的内容:

      <client>
                 <endpoint address="http://localhost:8080/WebService/UserInfoPort"
                     binding="basicHttpBinding" bindingConfiguration="WeatherWebServiceSoap"
                     contract="Weather.WeatherWebServiceSoap" name="WeatherWebServiceSoap" />
       </client>

       <client>

          <endpoint address="http://localhost:8080/WebService/UserInfoPort"
                     binding="basicHttpBinding" bindingConfiguration="WeatherWebServiceSoap"
                     contract="Weather.WeatherWebServiceSoap" name="WeatherWebServiceSoap" />
                 <endpoint address="http://localhost:8080/WebService/UserInfoPort2"
                     binding="basicHttpBinding" bindingConfiguration="WeatherWebServiceSoap"
                     contract="Weather.WeatherWebServiceSoap" name="WeatherWebServiceSoap" />
       </client>

  • 相关阅读:
    2013-9-29 通信原理学习笔记
    《大数据时代》阅读笔记
    《人人都是产品经理》阅读笔记一
    2013-8-13 信道接入技术研究学习
    2013-8-6 ubuntu基本操作
    2013-7-30 802.1X企业级加密
    2013-7-29 杂记
    2013-7-28 802.11n帧聚合
    2013-7-27 802.1X学习
    vue+node+mongoDB前后端分离个人博客(入门向)
  • 原文地址:https://www.cnblogs.com/lixiaolun/p/4165845.html
Copyright © 2011-2022 走看看