I'm getting an error ("Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index") when running a server report in the ReportViewer control in VB .NET 2005. This error does not occur every time the report is executed or refreshed. The report runs fine on the report server with the same parameter values entered. Also, when I get the error in ReportViewer, I can click "View Report" without changing any parameter values, and the report will run without any errors.
The error appears to be caused by having a parameter with available values from a query. When I change the parameter available values to non-queried, I no longer get the error. The report was created in Visual Studio .NET 2005. Has anyone run into this problem? Is this a bug in the ReportViewer control?
Thanks,
Andrea
The error appears to be caused by having a parameter with available values from a query. When I change the parameter available values to non-queried, I no longer get the error. The report was created in Visual Studio .NET 2005. Has anyone run into this problem? Is this a bug in the ReportViewer control?
Thanks,
Andrea