Priya6

Fusion Chart - ajax load randomly leads to null reference exception on Azure

Recommended Posts

@version fusioncharts/3.3.1-sr2.19840

Chart type: Javascript

Chart data: json

Uses FusionCharts/updatepanelhook.fusioncharts.js for ajax loads        

On ajax load randomly starts having below exception . However once error starts, restarting the azure instance is the only option.

Object reference not set to an instance of an object.

Stack trace:

at InfosoftGlobal.FusionCharts.FC_Transform(Hashtable arr, String tFormat, Boolean ignoreBlankValues)
at InfosoftGlobal.FusionCharts.FC_EncodeJSON(Hashtable json, Boolean enclosed)
at InfosoftGlobal.FusionCharts.RenderChartALL(String chartSWF, String dataUrl, String dataStr, String chartId, String chartWidth, String chartHeight, Boolean debugMode, Boolean registerWithJS, Boolean allowTransparent, String bgColor, String scaleMode, String language)
at InfosoftGlobal.FusionCharts.RenderChart(String chartSWF, String dataUrl, String dataStr, String chartId, String chartWidth, String chartHeight, Boolean debugMode, Boolean registerWithJS)
at SIBlue.home.RenderChart(String dataStr, String chartId)
at SIBlue.home.Display_Shock_Graph()

 

How do we handle this exception, with out restarting the azure instance.

Edited by Priya6

Share this post


Link to post
Share on other sites

Hi,

 

You are implementing a too older version of FusionCharts and FusionCharts ASP.NET wrapper.

You could check with the latest FusionCharts version and check.

You could check the following sample showcasing AJAX call in ASP.NET application https://www.dropbox.com/s/10o4hpfolll6sn8/FusionCharts AJAX demo.zip?dl=0

Also check https://www.dropbox.com/s/oiocpi38vpisnc1/FCDotnetAJAX.zip?dl=0

 

You could check the following sample for implementing FusionCharts within update panel control https://www.dropbox.com/s/5w2483xh5zqfuf5/Demo UpdatePanel refresh.zip?dl=0

 

check the above-given sample and implement accordingly based on your requirements.

 

Thanks

Soumya

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now