开发者

#SEQ keyword in Asp.Net Charting control with multiple Azure Cloud app instances

I am having a simple Azure cloud app(WebRole=ASP.Net MVC) which draws charts using ASP.Net Charting control.

Specifications-->

  1. Chart RenderType = ImageMap
  2. Chart ImageLocation = "/Images/Chart_#SEQ(1000,1)"
  3. Number of app instances deployed on Windows Azure = 5
  4. App contains a button which draws charts as per users parameters. When user clicks on this button, MVC action is called which provides necessary ViewData for drawing chart and returns a partial view which after getting rendered sends ImageMap and Image location to client.

#SEQ keyword in Asp.Net Charting control with multiple Azure Cloud app instances

When I try to draw charts from IE8 I always get the charts as per my parameters but when I simulataneously try to draw charts on FireFox sometimes I get wrong charts(wrong images).

Is it due to roundrobin used - #SEQ(1000,1) or due to 开发者_如何转开发mutiple instances of my cloud app ?


Not sure if FF vs IE is relevant here. Rather looks like a caching issue. On Windows Azure, the ASP.NET cache is NOT shared between worker instances. If your charting logic is depending on the cache, it might be causing the problem, as multiple requests might end up on distinct web role instances.


I posted a solution to this problem here: http://social.msdn.microsoft.com/Forums/en-AU/windowsazuredevelopment/thread/fe6ccbdf-ec70-49f5-aef4-aada217938ed

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜