views:

124

answers:

1

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.

alt text

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 is due to roundrobin used - #SEQ(1000,1) or due to mutiple instances of my cloud app ?

Thanks,

Kushal

+1  A: 

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.

Joannes Vermorel
Yes I also think that main cause of this problem is multiple instances of cloud app. I guess this problem can be solved using AspSessionProvider for image storage.
Kushal Waikar