suan.ngaihte Report post Posted December 19, 2008 Hi, I am using WindowsXP and VS-2008 for developing a web application. I am using Fusion Chart on a page. As far as I know all the code has been running correctly for long time, but suddenly due to some unknown reason fusion chart stops being displayed on the machine where we deployed (It is a Windows Server 2008). We could not trace the problem because the chart is displaying correctly on our development machine, but when we publish and deploy our application the chart does not get displayed, it displays only a blank space (something like a place holder) on the page instead of the chart. Please help us to resolve if you have ever come across this type of problem. Nothing has been changed from when it was getting displayed correctly. Share this post Link to post Share on other sites
Arindam Report post Posted December 19, 2008 Hi, Could you please check absolute and relative path of FusionCharts swf and FusionCharts.js file and also check swf file uploaded correctly or not? Share this post Link to post Share on other sites
suan.ngaihte Report post Posted December 19, 2008 Hi All, There is a very strange or rather say funny things which we found out recently. It is something like this. We have been using chart in various pages for displaying some statistics. On the .cs file where we write the code to render the chart we have a constant string variable which hold the path (URL) of the chart. It is like this const string fusionChartsPath = "../FusionCharts/"; if we assign a value as above chart gets displayed on page load, but when a postback occurs, say by button click, then the chart gets disappeared. Again when we change the constant varaible as follow const string fusionChartsPath = "FusionCharts/"; the chart does not get displayed on first load, but when a postback occurs, say by button click, then the chart gets displayed. What could be the problem here guys?? Thanks Share this post Link to post Share on other sites
Arindam Report post Posted December 19, 2008 (edited) Hi, Again this is swf path problem. I think when you are using post back on button click that time you are loading your swf file from other location. Please use swf path relative to your page where chart will display. Edited December 19, 2008 by Guest Share this post Link to post Share on other sites
suan.ngaihte Report post Posted December 19, 2008 (edited) Hi, But we put all the SWF files, FusionCharts.js and FusionChart.cs in one same folder called "FusionCharts" only and we are using this path only from that constant variable. The "FusionCharts" folder is directly under the root directory. And in our Default.aspx page we link the JavaScript file as follows --For XHTML 1.0 < script language="javascript" src="FusionCharts/FusionCharts.js" type="text/javascript" > </script> --For HTML 4.0 < script language="javascript" src="../FusionCharts/FusionCharts.js" type="text/javascript" > </script> Do you think this is the problem? Edited December 19, 2008 by Guest Share this post Link to post Share on other sites
Arindam Report post Posted December 19, 2008 Hi, Please provide us your source code and folder structure via email. Share this post Link to post Share on other sites