简体   繁体   中英

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).

When only one VM1 is active, the page and site renders Ajax controls correctly. But as soon as I start adding VM's, the web pages Ajax controls do not render correctly. 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.

Make sure the machineKeys are identical, this may help in decrypting the URLs. Check for broken requests first, of course.

Another option is using CDNs to get resources from edge servers, not from your servers:

skins: http://www.telerik.com/help/aspnet-ajax/stylesheetmanager-cdn-support.html

scripts: http://www.telerik.com/help/aspnet-ajax/scriptmanager-cdn-support.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM