无法加载协定为“NM3.IClrService”的终结点配置部分,因为找到了该协定的多个终结点配置。请按名称指示首选的终结点配置部分
2024-09-10 02:43:07
<binding name="NetTcpBinding_IClrService1" receiveTimeout="00:10:00"
sendTimeout="00:10:00" transferMode="Streamed" maxBufferPoolSize=""
maxBufferSize="" maxReceivedMessageSize="">
<security mode="None" />
</binding>
<endpoint address="net.tcp://132.122.***.**:3366/" binding="netTcpBinding"
bindingConfiguration="NetTcpBinding_IClrService1" contract="NM3.IClrService"
name="NetTcpBinding_IClrService1" />
我的web.config中没有我自己没有搜索出来重复节点配置
于是我指定了webservice的名字
NM3.ClrServiceClient client = new Web.NM3.ClrServiceClient("NetTcpBinding_IClrService1");
然后就没有报错啦~
借鉴了这位大佬的~
https://blog.csdn.net/dongfengkuayue/article/details/38392923?tdsourcetag=s_pcqq_aiomsg
最新文章
- MySql操作
- 基于Moodle的IT课程辅助教育平台搭建
- [Prodinner项目]学习分享_第三部分_Service层(业务逻辑层)
- jquery---点击弹出层
- Apriori算法第一篇
- Zookeeper 笔记-watch
- java continue与break区别
- github pages绑定域名
- 2018-2019-20175334实验二《Java面向对象程序设计》实验报告
- MySQL的SQL语句优化-group by语句的优化
- Beta冲刺 (1/7)
- python学习 day05打卡
- PostgreSQL数据加载工具之pg_bulkload
- PythonCharm 配置本地反向代理激活
- Python时间日期格式化之time与datetime模块总结
- Android Runtime.getRuntime().exec
- http://www.5xcg.com/bbs/forum.php?mod=viewthread&;tid=51143&;extra=page%3D1
- 猜数字游戏的提示(UVa340)
- 【BFS】【枚举】HihoCoder - 1251 - The 2015 ACM-ICPC Asia Beijing Regional Contest - C - Today Is a Rainy Day
- Qt 5.8 移植编译、测试