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
Everything works as expected when TempChart is set to Httphandler but I wish to use File for another reason.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
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:
ThanksRelease 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