Error when switching TempChart from Httphander to File

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
norman
Newbie
Newbie
Posts: 82
Joined: Fri Jan 25, 2008 12:00 am

Error when switching TempChart from Httphander to File

Post by norman » Thu Dec 04, 2008 6:14 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Dec 05, 2008 9:48 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

norman
Newbie
Newbie
Posts: 82
Joined: Fri Jan 25, 2008 12:00 am

Post by norman » Fri Dec 05, 2008 3:15 pm

I've upgraded to version 3.5.3225.32184 and the problem is persisting. Can you confirm whether this a bug?

Thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Dec 10, 2008 3:32 pm

Hi norman,

Yes, I can confirm that. I've added the defect (TF02013647) to the list to be fixed for next releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

norman
Newbie
Newbie
Posts: 82
Joined: Fri Jan 25, 2008 12:00 am

Post by norman » Thu Dec 11, 2008 4:10 pm

Thanks Narcís - much appreciated

norman
Newbie
Newbie
Posts: 82
Joined: Fri Jan 25, 2008 12:00 am

Post by norman » Wed Jan 14, 2009 11:37 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jan 14, 2009 11:58 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

norman
Newbie
Newbie
Posts: 82
Joined: Fri Jan 25, 2008 12:00 am

Post by norman » Wed Jan 14, 2009 12:08 pm

Hi, sorry I missed the post that detailed the fixes in the latest version :oops: Any ideas on a timeframe?

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Thu Feb 12, 2009 3:28 pm

Hello,

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

Regards,
Marc Meumann
Steema Support

Post Reply