Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 746
Kushal Waikar Avatar asked Dec 21 '25 00:12

Kushal Waikar


2 Answers

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.

like image 200
Joannes Vermorel Avatar answered Dec 22 '25 19:12

Joannes Vermorel


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

like image 41
Peter Grimshaw Avatar answered Dec 22 '25 20:12

Peter Grimshaw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!