This is a migrated thread and some comments may be shown as answers.

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

8 Answers 618 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tehseen
Top achievements
Rank 1
Tehseen asked on 30 Jan 2012, 03:11 PM
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

8 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Jan 2012, 03:33 PM
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!

0
Tehseen
Top achievements
Rank 1
answered on 30 Jan 2012, 07:56 PM
Dear,
 
Please find below the sample

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

regards
0
Mohsin
Top achievements
Rank 1
answered on 31 Jan 2012, 07:10 PM
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
0
Steve
Telerik team
answered on 02 Feb 2012, 06:10 PM
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!

0
Mohsin
Top achievements
Rank 1
answered on 03 Feb 2012, 09:14 PM
Thanks Steve. will be looking forward to your post.
0
Steve
Telerik team
answered on 09 Feb 2012, 09:35 AM
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 >>
0
Santa
Top achievements
Rank 1
answered on 16 Feb 2012, 03:53 PM
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
0
Steve
Telerik team
answered on 16 Feb 2012, 03:57 PM
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 >>
Tags
General Discussions
Asked by
Tehseen
Top achievements
Rank 1
Answers by
Steve
Telerik team
Tehseen
Top achievements
Rank 1
Mohsin
Top achievements
Rank 1
Santa
Top achievements
Rank 1
Share this question
or