负载平衡后,UCMA WCF服务不起作用 [英] UCMA WCF service doesn't work after load balancing

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

问题描述

早上好。

我安装了UCMA WCF服务(如
http://code.msdn.microsoft.com/ucmawcf
)在两台Windows 2008 / IIS 7服务器上( http://svcqa1.mycompany.com/ucma_wcf/WcfApi.svc &
http://svcqa2.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 and http://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);

它会抛出错误:"没有端点监听
http:/ /loadbalancer.mycompany.com/ucma_wcf/WcfApi.svc 可以接受消息"

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应用程序的应用程序配置,以反映它现在在两台计算机之间进行负载平衡? 对于负载平衡的应用程序,受信任的应用程序条目的配置是不同的。

Did you change the application provisioning for the UCMA app to reflect that it is now load balanced between the two machines?  The configuration of the Trusted Application entry is different for a load balanced application.

 

 


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆