Sign in to follow this  
suan.ngaihte

Chart not get displayed on Deployment Machine, but display on development machine

Recommended Posts

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

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

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

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 by Guest

Share this post


Link to post
Share on other sites

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

 

 &lt script language="javascript" src="FusionCharts/FusionCharts.js" type="text/javascript" > &lt/script&gt 

 

 

 

--For HTML 4.0

 

 &lt script language="javascript" src="../FusionCharts/FusionCharts.js" type="text/javascript" > &lt/script&gt

 

 

 

Do you think this is the problem?

Edited by Guest

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