[英]When I create Windows Azure Load Balanced VM's my web application does not render the Ajax Controls correctly
I have: 1 Cloud Service with 3 VM's(load balanced) each with the same website loaded in IIS(.net framework 4.5). 我有:1个具有3个虚拟机(负载均衡)的云服务,每个虚拟机具有在IIS(.net framework 4.5)中加载的相同网站。
When only one VM1 is active, the page and site renders Ajax controls correctly. 当只有一个VM1处于活动状态时,页面和站点将正确呈现Ajax控件。 But as soon as I start adding VM's, the web pages Ajax controls do not render correctly. 但是,一旦我开始添加虚拟机,网页Ajax控件就无法正确呈现。 This is an intermittent problem, it works sometimes but most times it fails. 这是一个间歇性问题,有时可能会起作用,但大多数情况下会失败。
I suspect that it is the load balancing that's causing the issue? 我怀疑是导致问题的负载平衡?
I think something goes wrong with the webresource requests, probably the URLs are generated from one machine, but requested from another where the URL cannot be decrypted. 我认为Webresource请求出了点问题,可能URL是从一台机器生成的,但是是从不能解密URL的另一台机器生成的。
Make sure the machineKeys are identical, this may help in decrypting the URLs. 确保machineKeys相同,这可能有助于解密URL。 Check for broken requests first, of course. 当然,请先检查是否有损坏的请求。
Another option is using CDNs to get resources from edge servers, not from your servers: 另一种选择是使用CDN从边缘服务器而不是从服务器获取资源:
skins: http://www.telerik.com/help/aspnet-ajax/stylesheetmanager-cdn-support.html 皮肤: http : //www.telerik.com/help/aspnet-ajax/stylesheetmanager-cdn-support.html
scripts: http://www.telerik.com/help/aspnet-ajax/scriptmanager-cdn-support.html 脚本: http : //www.telerik.com/help/aspnet-ajax/scriptmanager-cdn-support.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.