Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Index was out of range. Must be non-negative and less than the size of the collection.
posted

Am trying to generate excel but am getting error like

 

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: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
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: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) +7609195
   Infragistics.Web.UI.ListControls.ListItemCollection.get_Item(Int32 index) +85
   Infragistics.Web.UI.ListControls.ListControl.ResolveItem(String fullAddress) +165
   Infragistics.Web.UI.ListControls.ListBot.ResolveItem(String fullAddress) +45
   Infragistics.Web.UI.ListControls.DropDownBot.LoadClientCollections(Object[] data) +186
   Infragistics.Web.UI.Framework.RunBot.LoadClientData() +88
   Infragistics.Web.UI.Framework.RunBot.HandleLoadPostData(String postDataKey, NameValueCollection postCollection) +41
   Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +54
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +690
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743

Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5456