Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Reporting > Telerik Reporting > Index was out of range. Must be non-negative and less than the size of the collection.

Not answered Index was out of range. Must be non-negative and less than the size of the collection.

Feed from this thread
  • Tehseen avatar

    Posted on Jan 30, 2012 (permalink)

    Dear,

    I have been evaluating Telerik Reporting for one of the my clients. I have developed a report with drill down and i faced following problem.

    Actually there is grouping on one Database field and under that field a group exists only for column labels. On Parent group footer's Action I toggle the visibility of detail section,Parent group header section, and label group header section which are initially invisible. This drill down works fine in report designer preview. In web page viewer expension of headers and detail sections works fine but when i want to collapse these back by clicking minus sign I was given following error

     

    Server Error in '/WebViewer' Application.

    Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index

    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.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +64 System.ThrowHelper.ThrowArgumentOutOfRangeException() +15 System.Collections.Generic.List`1.get_Item(Int32 index) +7499588 Telerik.ReportViewer.WebForms.StreamManager.GetStreamInfo(Int32 pageIndex) +41 Telerik.ReportViewer.WebForms.ReportPageOperation.WriteHtmlPage(StreamManager streamManager, Int32 pageIndex) +44 Telerik.ReportViewer.WebForms.ReportPageOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext) +615 Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() +286 Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperationOverride() +150 Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) +68 Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +241 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 






    Please help me.

    Regards

    Reply

  • Steve Steve admin's avatar

    Posted on Jan 30, 2012 (permalink)

    Hello Tehseen,

    We would appreciate if you provide us with a sample report that exhibits the problem, as we are not sure we understand correctly your setup and we cannot reproduce such issue on our end. Please prepare a sample and either attach it in a support ticket or upload it to a free file server and paste the link in this forum.

    Kind regards,
    Steve
    the Telerik team

    Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

    Reply

  • Tehseen avatar

    Posted on Jan 30, 2012 (permalink)

    Dear,
     
    Please find below the sample

    https://rapidshare.com/files/1954535398/sample.zip

    regards

    Reply

  • Mohsin avatar

    Posted on Jan 31, 2012 (permalink)

    Hi Steve,

    Were you able to reproduce the issue that Tahseen mentioned? i am having a similar issue when i collapse a drill down section in the web viewer.

    Regards,
    Mohsin

    Reply

  • Steve Steve admin's avatar

    Posted on Feb 2, 2012 (permalink)

    Hello guys,

    We encountered some rather strange behavior with the provided sample and would need more time to investigate what is happening. Once we have more info, we would get back to you in this thread.

    Regards,
    Steve
    the Telerik team

    Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

    Reply

  • Mohsin avatar

    Posted on Feb 3, 2012 (permalink)

    Thanks Steve. will be looking forward to your post.

    Reply

  • Steve Steve admin's avatar

    Posted on Feb 9, 2012 (permalink)

    Hi guys,

    The application works correctly with the latest internal build (short video attached). Please download it and upgrade to resolve the problem.

    Greetings,
    Steve
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
    Attached files

    Reply

  • Santa avatar

    Posted on Feb 16, 2012 (permalink)

    Hi Support team,

    I encounter the same problem in a drill down report.  I set the bookmarkid property on a group item and configured Action item to go to that book mark which shows the above error in ReportViewer.  Has this been resolved in your 2011 Q3 SP1 or else what is the course of action?

    thanks
    santa

    Reply

  • Steve Steve admin's avatar

    Posted on Feb 16, 2012 (permalink)

    Hello Santa,

    All known/reported problems with the drill-down have been addressed in the official Q1 2012 release. You're talking about Bookmark Action which is different than what users have reported in this thread. Our suggestion is to upgrade to the latest version and if the problem persists, open a support ticket and attach a sample report that exhibits the issue.

    Regards,
    Steve
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Reporting > Telerik Reporting > Index was out of range. Must be non-negative and less than the size of the collection.
Related resources for "Index was out of range. Must be non-negative and less than the size of the collection."

Features  |  Documentation  |  Demos  |  Telerik TV  |  Knowledge Base  |  Code Library  |  Step-by-step Tutorial  |  Blogs  |  Whitepaper  ]