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>

  • 相关阅读:
    洛谷P2886 [USACO07NOV]Cow Relays G
    CF1344F Piet's Palette
    CF1344E Train Tracks
    CF1342F Make It Ascending
    LOJ6049 拍苍蝇
    test20200430 最长路径
    LG1742 最小圆覆盖 和 LOJ6360 复燃「恋之埋火」
    LOJ6358 前夕
    LOJ6485 LJJ学二项式定理
    LOJ2882 两个人的星座
  • 原文地址:https://www.cnblogs.com/lixiaolun/p/4165845.html
Copyright © 2011-2022 走看看