简体   繁体   English

当我创建Windows Azure负载平衡VM时,我的Web应用程序无法正确呈现Ajax控件

[英]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.

相关问题 如何在Web应用程序中使用Ajax工具包控件? - How could I use ajax toolkit controls in my web application? 为什么Web控件没有Windows应用程序之类的足够事件? - Why web controls does not have sufficient events like windows application? 我可以为我的Web应用程序中的所有DataGrid控件创建一个事件处理程序吗? - Can I create one event handler for all DataGrid controls in my web application? 更改Azure网站的负载平衡服务器吗? - Change load-balanced server for Azure web site? 在.NET Web应用程序上浏览时,我的网站(在Azure VM Windows 2012服务器上)的URL之一开始显示“此页面无法显示” - One of the URLs on my web site (on Azure VM Windows 2012 server) has started getting “This page can't be displayed” when browsed on my , .NET web app How to access my ASP.NET Web API on Windows Azure VM from the outside world? - How to access my ASP.NET Web API on Windows Azure VM from the outside world? 在自己的线程上加载3个用户控件(Web应用程序) - Load 3 user controls (web application) on their own threads Ajaxtoolkit控件无法在我的Web应用程序中访问 - Ajaxtoolkit controls are unable to access in my web application 我可以使用IP地址浏览到Azure VM上的ASP.NET应用程序吗? - Can I browse to my ASP.NET application on an Azure VM using an IP address? 将sql数据库连接到Windows Azure VM上的网站 - connecting sql database to Web site on Windows azure vm
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM