欢迎来到Doc100.Net免费学习资源知识分享平台!
您的位置:首页 > 程序异常 >

nlb群集下wcf有关问题

更新时间: 2014-01-05 01:59:39 责任编辑: Author_N1

 

NLB群集下WCF问题
想用NLB实现故障转移,架构图如下:


            <endpoint address="net.tcp://192.168.2.179:9208/ClinicBook/Service.svc/BookManage"
                binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ClinicBook_IBookManage"
                contract="ClinicBookService.ClinicBook_IBookManage" name="NetTcpBinding_ClinicBook_IBookManage" />
            <endpoint address="net.tcp://192.168.2.179:9208/ClinicBook/Service.svc/BookNet"
                binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ClinicBook_IBookNet"
                contract="ClinicBookService.ClinicBook_IBookNet" name="NetTcpBinding_ClinicBook_IBookNet" />

App.config文件这样配置就报错:

如果改成下面直接访问就能成功,请问该如何解决?
            <endpoint address="net.tcp://192.168.2.178:9208/ClinicBook/Service.svc/BookManage"
                binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ClinicBook_IBookManage"
                contract="ClinicBookService.ClinicBook_IBookManage" name="NetTcpBinding_ClinicBook_IBookManage" />
            <endpoint address="net.tcp://192.168.2.178:9208/ClinicBook/Service.svc/BookNet"
                binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ClinicBook_IBookNet"
                contract="ClinicBookService.ClinicBook_IBookNet" name="NetTcpBinding_ClinicBook_IBookNet" />



--参考方法--
看这篇文章,应该不难啊:
WCF Load Balancing : An End To End Example For NetTcpBinding
http://charliedigital.com/2009/04/17/wcf-load-balancing-an-end-to-end-example-for-nettcpbinding/
上一篇:上一篇
下一篇:下一篇

 

随机推荐程序问答结果

 

 

如对文章有任何疑问请提交到问题反馈,或者您对内容不满意,请您反馈给我们DOC100.NET论坛发贴求解。
DOC100.NET资源网,机器学习分类整理更新日期::2014-01-05 01:59:39
如需转载,请注明文章出处和来源网址:http://www.doc100.net/bugs/t/4201/
本文WWW.DOC100.NET DOC100.NET版权所有。