Sign in to follow this  

Error In Loading Data

Recommended Posts

Hi All;

I have a problem with rendering the chart.

When I work on localhost, there is no problem with the charts, it works fine.

But after publishing the application to my IIS, my charts doesnt seem.. and gives a message titled "Error in loading data".. Before giving the error message, it says "retreiving data, please wait", it retreieves the data but does not show..

Please help..

Share this post

Link to post
Share on other sites
Guest Angshu



Thanks for your post.


If you get a "Error in Loading Data" message in your chart, it means that FusionCharts could not find XML data at the specified URL. In that case, check the following:


  • Check if you've actually provided dataURL or dataXML. If you do not provide either, FusionCharts looks for a default Data.xml file in the same path. Now, if that is also not found, it shows the "Error in Loading Data" error.
  • If you're using dataURL method, paste this URL in your browser to check if it's returning a valid XML. Make sure, there are no scripting or time-out errors and a valid XML is being returned. Also make sure that the XML isn't intermingled with HTML content. The data provider page should return a clean XML only - not even HTML <head> or <body> tags.
  • Make sure you're passing relative URLs for dataURL, and not absolute URLs. To restrict cross site security attacks, FusionCharts doesn't allow colons in dataURL (starting v3.0.5). So you cannot specify dataURL as http://.../path/file.ext any more.
  • If you have to pass parameters to your dataURL data provider page from FusionCharts, make sure they're URLEncoded in the dataURL, when providing to FusionCharts. e.g., if your dataURL needs to be Data.asp?id=43&subId=454, you'll need to Url Encode it so that it becomesData%2Easp%3Fid%3D43%26subId%3D454. Only then FusionCharts will invoke the URL with proper parameters appended to it.
  • When using dataURL method, make sure that the SWF File and data provider page are on the same sub-domain. Due to Flash's sandbox security model, it cannot access data from external domains, unless otherwise configured.

Hope this

Share this post

Link to post
Share on other sites

my function is written below

protected string CreatePieChart(int il)




string ilinAdi = tr_ilAdGetir(il);


string path = "" + ilinAdi + "Pie.xml";


string path2 = FusionCharts.EncodeDataURL(path,true);


return FusionCharts.RenderChartHTML("FusionCharts/Pie3D.swf",path2, "", ilinAdi+"Pie", "548", "305", false);





is there anything that I'm missing?


Edited by daade

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
Sign in to follow this