本文介绍了负载平衡后,UCMA WCF服务不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好。

我安装了UCMA WCF服务(如)在两台Windows 2008 / IIS 7服务器上( http://svcqa1.mycompany.com/ucma_wcf/WcfApi.svc &
)。两者都工作正常。

I installed UCMA WCF service ( as in http://code.msdn.microsoft.com/ucmawcf) on two Windows 2008 /IIS 7 servers (http://svcqa1.mycompany.com/ucma_wcf/WcfApi.svc andhttp://svcqa2.mycompany.com/ucma_wcf/WcfApi.svc). Both worked fine.

我将上述2台服务器放在负载均衡器后面,新的URL现在是
http://loadbalancer.mycompany.com/ucma_wcf/WcfApi.svc
。如果我在浏览器中打开此URL,它看起来很好。但是,如果我从我的程序中调用它,例如:

I put the above 2 servers behind a load balancer and the new URL is now http://loadbalancer.mycompany.com/ucma_wcf/WcfApi.svc. If i open this URL in browser, it looks fine. But if i call it from my program, for example:

WcfApiClient client =
new
WcfApiClient ();

loginResponse = client .Logon(凭证);

WcfApiClient client = new WcfApiClient();
loginResponse = client .Logon(credentials);

它会抛出错误:"没有端点监听
可以接受消息"

It will throw an error: "There was no endpoint listening at http://loadbalancer.mycompany.com/ucma_wcf/WcfApi.svc that could accept the message"

任何人都可以帮助我用这个?

Can anyone please help me with this?

谢谢!

Gary

推荐答案

 

 


这篇关于负载平衡后,UCMA WCF服务不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 14:41