Jump to content
Software FX Community

ChartFx didn't show up in server but ok in local machine


Recommended Posts

I have 3 bar charts and radial gauge on the same page. All charts work fine on my laptop until I deployed to test server.

The radial gauge shows correctly. I set format as

chart.RenderFormat =


At first, I got the error due to the missing 2 folders in test server. I manually created them and got by the error. However, the 3 charts didn't show up.

I searched thru the ChartFx forum and found out I'm not alone. It seems chartfx tried to save charts to the folders Chartfx70 and cfxGauge10 as .PNG format. I can see them under chfGuage10 folder but not in Chartfx70. I asked the NT server admin to change security as described in forum. Nothing works.

Anyway I can get away from generating charts in these temp folders? Why do we need to create virtual folders in IIS?

Any help will be greatly appreaciated!

Link to comment
Share on other sites

Hello Young,

The fact that the folders were missing is a bit strange. When you installed Chart FX on your server, did you make sure to run as an administrator (right click the file, run as administrator)? Also, was the PSS service created (there should be a service called "Chart FX 7.0 PSS Service" running on your server)? I would try removing the folders you have created, install as administrator and see if those folders get created automatically, with the right permissions.


Link to comment
Share on other sites

PSS is a service that runs on your server and handle the charts request. It does not work for gauges. You are responsible for deleting the images that get stored on the temp folder, periodicaly. I'm not sure why gauges works and chart does not. Maybe because PSS is not working? Can you try turning that service off and seeing what happens? :

Troubleshooting PSS:


More about PSS:


Turning off PSS:


"The chartfx70 folder under the root was missing not IIS."  -- Not sure what you mean by this.

Since you did not mention anything I am guess reinstall did not work?

Are you using any form of authentication on your page? If so, there are configurations required: http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/762/1/009.htm

Link to comment
Share on other sites

I had admin uninstall and re-install chartfx & guage. I still didn't see these 2 folders chartfx70 and chartfxguage10 created under the root.

When I ran report to create chart, it crashed with the following error. Something is related license. Any advice will be appreciated.

[ArgumentOutOfRangeException: Length cannot be less than zero.

Parameter name: length]

System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +7495111

ChartFX.WebForms.Internal.aa.a(String A_0, String& A_1, String& A_2) +38

ChartFX.WebForms.Internal.aa.a(Type A_0, String A_1, String& A_2, Boolean& A_3, ae& A_4) +75

ChartFX.WebForms.Internal.t.a(Boolean A_0, String A_1) +2340

ChartFX.WebForms.Internal.aa.a(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3, LicenseProvider A_4) +602

ChartFX.WebForms.Internal.x.a(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3) +389

System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) +237

System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) +41

System.ComponentModel.LicenseManager.Validate(Type type, Object instance) +31

ChartFX.WebForms.Chart..ctor() +210

ASP.audit_assessmentchartdetail_aspx.__BuildControlChart1() +44

ASP.audit_assessmentchartdetail_aspx.__BuildControl__control11() +75

ASP.audit_assessmentchartdetail_aspx.__BuildControl__control10(HtmlTableCellCollection __ctrl) +16

ASP.audit_assessmentchartdetail_aspx.__BuildControl__control9() +58

ASP.audit_assessmentchartdetail_aspx.__BuildControl__control5(HtmlTableRowCollection __ctrl) +35

ASP.audit_assessmentchartdetail_aspx.__BuildControltblSiteSummaryCharts() +82

ASP.audit_assessmentchartdetail_aspx.__BuildControlform1() +93

ASP.audit_assessmentchartdetail_aspx.__BuildControlTree(audit_assessmentchartdetail_aspx __ctrl) +115

ASP.audit_assessmentchartdetail_aspx.FrameworkInitialize() +37

System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +56

System.Web.UI.Page.ProcessRequest() +80

System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21

System.Web.UI.Page.ProcessRequest(HttpContext context) +49

ASP.audit_assessmentchartdetail_aspx.ProcessRequest(HttpContext context) +4

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75



Link to comment
Share on other sites

Folders chartfx70 and chartfxguage10 are not supposed to be created under the root. They are folders inside the installation folder of each product. A virtual folder with same name is created in IIS, pointing to them.

Regarding your license, what do you see on the License Manager?

Link to comment
Share on other sites

Reinstalled done ok. 

Here's my aspx page:

<chartfx7:Chart ID="Chart1" runat="server"

Palette="ChartFX6.ChartFX6" Height="280px" Width="490px"


<LegendBox Border="External" Dock="Bottom" Visible="false">


<SpecialObjects><chartfxadornments:ImageBorder AssemblyName="ChartFX.WebForms.Adornments"

Color="255, 199, 0" Type="Emboss" />

<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"

ColorFrom="172, 189, 213" ColorTo="223, 232, 242" />

<chartfx7galleries:Bar />


<AllSeries Gallery="Bar" >



<chartfx7:SeriesAttributes ></chartfx7:SeriesAttributes>

<chartfx7:SeriesAttributes ></chartfx7:SeriesAttributes>

<chartfx7:SeriesAttributes ></chartfx7:SeriesAttributes>

<chartfx7:SeriesAttributes ></chartfx7:SeriesAttributes>





<MainPane AxisY-TextColor="102, 102, 102" AxisY-Title-Text="%" />

<AxisX Title-Text="">

<Grids Major-Visible="False" />


<AxisY TextColor="102, 102, 102" Title-Text="%"></AxisY>

<ToolBar Visible="False" />


Here's my code behind:

Chart1.Data.Series = 4;

Chart1.Data.Points = 4;

Chart1.DataSourceSettings.Fields.Add(new FieldMap("Previous", FieldUsage.Value));


new FieldMap("Current", FieldUsage.Value));Chart1.DataSourceSettings.Fields.Add(new FieldMap("Target", FieldUsage.Value));


new FieldMap("Corp Avg", FieldUsage.Value));


new FieldMap("module_nm", FieldUsage.Label));

Chart1.AxisY.DataFormat.Decimals = 0;

Chart1.AxisY.LabelsFormat.Format = AxisFormat.Number;

Chart1.AllSeries.PointLabels.Format =

"%v";Chart1.AllSeries.BarShape = BarShape.Cylinder;

Chart1.AllSeries.PointLabels.Visible =

true;Chart1.ToolTipFormat = "%v%%";

//LegendboxChart1.LegendBox.Visible = false;



Chart1.LegendBox.Dock = DockArea.Bottom;

Chart1.LegendBox.Border =

DockBorder.External;Chart1.ToolBar.Visible = false;

Chart1.DataGrid.Visible =

true;Chart1.View3D.Enabled = false;

Chart1.DataGrid.MaxSizePercentage = 100;

//--- set chart type: statcked bar ----Chart1.AllSeries.Gallery = Gallery.Bar;

Chart1.AllSeries.Stacked =


//--- Get data to bind to chart ----

DataTable dt = Assessments.GetHistoricalSAFEScores(ref data);

Chart1.DataSource = dt;


The chart didn't show up. My deadline is coming but I can't get it to work.

Any help will be greatly appreciated.

Link to comment
Share on other sites

Not sure why you posted your code. If your code works on one machine, it should also work on another, that should not be the issue. You have not answered my question regarding the License Manager. Can you take a screenshot of that. Also, can you take a screen shot of your ISS showing the two virtual folders?

Link to comment
Share on other sites

- License manager said Active License with green check image. We had issue after max out numbers of reinstalling. We contact security they took care of it. Reinstallation is ok now.

Here's what I saw.

 - This is the root of my website: http://ehsdb-test

- http://ehsdb-test/CfxGauges10/temp/CFT1208_0121582B00F.png ---> radial guage works ok because it doesn't requires PSS service.

- http://ehsdb-test/chartfx70/pss/ChartFX.aspx?id=0-120813215&type=png&mime=image%2fpng when it hits this line it encounters security and reroutes it to the \Auth - authorization folder  Redirect to /ChartFX70/PSS/Auth/Auth.aspx?ReturnUrl=%2fchartfx70% 


+ 13.210   0.260 931 763 GET   302 Redirect to /ChartFX70/PSS/Auth/Auth.aspx?ReturnUrl=%2fchartfx70%2fpss%2fChartFX.aspx%3fid%3d0-120813213%26type%3dpng%26mime%3dimage%252fpng&id=0-120813213&type=png&mime=image%2fpng http://ehsdb-test/chartfx70/pss/ChartFX.aspx?id=0-120813213&type=png&mime=image%2fpng<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

+ 13.211 0.033 1009 672 GET   401 html http://ehsdb-test/chartfx70/pss/ChartFX.aspx?id=0-120813214&type=png&mime=image%2fpng

+ 13.211 0.034 1009 672 GET   401 html http://ehsdb-test/chartfx70/pss/ChartFX.aspx?id=0-120813215&type=png&mime=image%2fpng

+ 13.211 0.040 982 672 GET   401 html http://ehsdb-test/CfxGauges10/temp/CFT1208_0121582B00F.png

+ 13.245 0.226 1745 763 GET   302 Redirect to /ChartFX70/PSS/Auth/Auth.aspx?ReturnUrl=%2fchartfx70%2fpss%2fChartFX.aspx%3fid%3d0-120813214%26type%3dpng%26mime%3dimage%252fpng&id=0-120813214&type=png&mime=image%2fpng http://ehsdb-test/chartfx70/pss/ChartFX.aspx?id=0-120813214&type=png&mime=image%2fpng

+ 13.246 0.225 1745 763 GET   302 Redirect to /ChartFX70/PSS/Auth/Auth.aspx?ReturnUrl=%2fchartfx70%2fpss%2fChartFX.aspx%3fid%3d0-120813215%26type%3dpng%26mime%3dimage%252fpng&id=0-120813215&type=png&mime=image%2fpng http://ehsdb-test/chartfx70/pss/ChartFX.aspx?id=0-120813215&type=png&mime=image%2fpng

+ 13.252 1   0.055 1718 31527   GET   200 png   http://ehsdb-test/CfxGauges10/temp/CFT1208_0121582B00F.png


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...