求助Chart FX控件报错:长度不能小于 0。参数名: length
长度不能小于 0。
参数名: length
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ArgumentOutOfRangeException: 长度不能小于 0。
参数名: length
源错误:
行 99: </div>
行 100:<div id="TabContent1" style="display:block; HEIGHT: 300; OVERFLOW: scroll; scrollbar-shadow-color: #ffffff; scrollbar-highlight-color: #ffffff; scrollbar-face-color: #d9d9d9; scrollbar-3dlight-color: #d9d9d9; scrollbar-darkshadow-color: #d9d9d9; scrollbar-track-color: #ffffff; scrollbar-arrow-color: #ffffff"><%--style="display:block;overflow:scroll;"> --%>
行 101: <chartfx7:Chart ID="LineB" runat="server" >
行 102: <Series>
行 103: <chartfx7:SeriesAttributes Gallery="Bar" />
源文件: d:\wwwroot\sinotruk_hz\Default.aspx 行: 101
堆栈跟踪:
[ArgumentOutOfRangeException: 长度不能小于 0。
参数名: length]
System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +7490999
ChartFX.WebForms.Internal.z.a(String A_0, String& A_1, String& A_2) +38
ChartFX.WebForms.Internal.z.a(Type A_0, String A_1, String& A_2, Boolean& A_3, ad& A_4) +75
ChartFX.WebForms.Internal.s.a(Boolean A_0, String A_1) +2329
ChartFX.WebForms.Internal.z.a(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3, LicenseProvider A_4) +241
ChartFX.WebForms.Internal.w.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.default_aspx.__BuildControlLineB() in d:\wwwroot\sinotruk_hz\Default.aspx:101
ASP.default_aspx.__BuildControlMainForm() in d:\wwwroot\sinotruk_hz\Default.aspx:85
ASP.default_aspx.__BuildControlLblockMain() in d:\wwwroot\sinotruk_hz\Default.aspx:84
ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in d:\wwwroot\sinotruk_hz\Default.aspx:1
ASP.default_aspx.FrameworkInitialize() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f39d55c\6844705d\App_Web_vcwnbymi.0.cs:0
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.default_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f39d55c\6844705d\App_Web_vcwnbymi.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
操作系统windows2003 server 32bit
iis6, 开发工具VS2008
在开发的机器上没有问题,之前在其他服务器上部署也没有问题。
------解决方案--------------------
估計是license問題