Page 1 of 1

Error when switching TempChart from Httphander to File

Posted: Thu Dec 04, 2008 6:14 pm
by 13048070
Hi,

I'm having a problem when I switch the TempChart property from HttpHandler to File.

I have a simple time series chart where I've added a number of points at runtime. If I compile my application and run it the chart will appear as expected irrespective of which TempChart setting I use (i.e. File or Httphandler). However if I include the following lines:

Code: Select all

Dim scrollTool As New Steema.TeeChart.Tools.ScrollTool(WebChart1.Chart)
scrollTool.SegmentViewUnits = Steema.TeeChart.Tools.ScrollToolViewUnit.percent
scrollTool.ViewSegmentSize = 10
scrollTool.StartPosition = 10
I get the following error at runtime whenthe TempChart is set to File only:
Length cannot be less than zero.
Parameter name: length
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +2916097
Steema.TeeChart.Web.WebChart.CreatePictureFile(HtmlTextWriter writer, Int32 flag) +6600
Steema.TeeChart.Web.WebChart.Render(HtmlTextWriter output) +114
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558
Everything works as expected when TempChart is set to Httphandler but I wish to use File for another reason.

As I understand it neither rely on GetChart.aspx so that isn't the problem? I've recompiled the application, stopped and started the web publishing service, cleared the history and cleared out the _chart_temp directory between attempts just to make sure I'm starting afresh each time. Could it be an issue with the particular build of TeeChart I'm using?

The release notes indicate:
Release Notes January 24th 2008
TeeChart.NET version 3
Build 3.2.2945.19738
Compiled for Visual Studio 2008
Build 3.2.2945.19737
Compiled in .NET Framework 2.0
Build 3.2.2945.19736
Compiled in .NET Framework 1.0
Thanks

Posted: Fri Dec 05, 2008 9:48 am
by narcis
Hi norman,
Could it be an issue with the particular build of TeeChart I'm using?

The release notes indicate:

Quote:
Release Notes January 24th 2008
TeeChart.NET version 3
Build 3.2.2945.19738
Compiled for Visual Studio 2008
Build 3.2.2945.19737
Compiled in .NET Framework 2.0
Build 3.2.2945.19736
Compiled in .NET Framework 1.0
I'm not sure if any bug in this field has been fixed. However I strongly recommend you to try using latest version which is build 3.5.3225.32183/4/5 from 3rt November 2008. As you can see in the release notes a lot of issues have been fixed, enhanced and implemented since January.

Thanks in advance.

Posted: Fri Dec 05, 2008 3:15 pm
by 13048070
I've upgraded to version 3.5.3225.32184 and the problem is persisting. Can you confirm whether this a bug?

Thanks

Posted: Wed Dec 10, 2008 3:32 pm
by narcis
Hi norman,

Yes, I can confirm that. I've added the defect (TF02013647) to the list to be fixed for next releases.

Posted: Thu Dec 11, 2008 4:10 pm
by 13048070
Thanks NarcĂ­s - much appreciated

Posted: Wed Jan 14, 2009 11:37 am
by 13048070
Hi,
narcis wrote:I've added the defect (TF02013647) to the list to be fixed for next releases.
Can you confirm whether or not the above defect has been addressed in the version released 19 December 2008?

Thanks

Posted: Wed Jan 14, 2009 11:58 am
by narcis
Hi norman,

No, this issue hasn't been fixed yet. I recommend you to be aware at this forum or subscribe ot our RSS news feed for new release announcements and what's fixed on them.

Posted: Wed Jan 14, 2009 12:08 pm
by 13048070
Hi, sorry I missed the post that detailed the fixes in the latest version :oops: Any ideas on a timeframe?

Posted: Thu Feb 12, 2009 3:28 pm
by Marc
Hello,

This problem has been fixed for inclusion in the next maintenance release.

Regards,
Marc Meumann