Home - Forums-.NET - FlyTreeView (ASP.NET) - Destination array is not long enough...

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Destination array is not long enough...
Link Posted: 06-Sep-2007 05:01
We are getting a sporadic error in our production system that doesn't seem to make much sense.  We cannot reproduce it and I was wondering if you might be able to give us a hint as to where it is occurring.

Error Message:
Destination array is not long enough to copy all the items in the collection. Check array index and length.

Stack Trace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.KeyCollection.CopyTo(TKey[] array, Int32 index) at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) at NineRays.WebControls.Resources.ClientRuntimeResources.ResourceTool.GetResourceNames() at NineRays.WebControls.Resources.ClientRuntimeResources.GetStandardValues(String prefix) at NineRays.WebControls.FlyTreeView.RenderCommon(JavascriptBuilder jsBuilder) at NineRays.WebControls.FlyTreeView.NineRays.WebControls.IFlyControl.RenderStartupScript(JavascriptBuilder jsBuilder) at NineRays.WebControls.FlyControlCommon`1.PreRender() at NineRays.WebControls.FlyTreeView.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  

Browser Info:  
Browser: IE
Version: 6.0
Major Version: 6
Minor Version: 0
W3CDomVersion: 1.0
Client Platform: WinXP
Supp CSS: True
Supp CallBack: True
Supp XmlHttp: True
Supp Cookies: True
Supp Frames: True
Supp JS: True
Supp Ecma Script Ver: 1.2
Supp JScript Ver: 5.6
Supp DIV Align: True
Link Posted: 06-Sep-2007 05:48
This looks like a thread safety related issue.
We have some tests here and I'll report you back ASAP.
Link Posted: 06-Sep-2007 06:04
Yes, this was a bug. A fixed build will be available at our site in 20 minutes.

Thanks.