错误如图:

无法加载协定为“ServiceReference1.xxxxxx”的终结点配置部分

 然后我找到app.config文件发现文件夹下面多了个customBinding节点

如图:

无法加载协定为“ServiceReference1.xxxxxx”的终结点配置部分

解决办法我找到了两个

一:

 ServiceReference1.WsBusinessSyncSoapClient client =  new TestOrderPlam.ServiceReference1.WsBusinessSyncSoapClient("WsBusinessSyncSoap"); 指定绑定名称

二:

删除app.config多余的绑定节点和endpoint节点

 

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-01-05
  • 2021-11-27
猜你喜欢
  • 2021-08-27
  • 2021-09-10
  • 2021-10-29
  • 2022-02-19
  • 2022-12-23
相关资源
相似解决方案