ReportViewer error "Page navigation is out of range"
The application has session state turned off.
The problem occurs whether or not the viewstate for ReportViewer is turned on or off.
How can I fix this problem?
The application has session state turned off.
The problem occurs whether or not the viewstate for ReportViewer is turned on or off.
How can I fix this problem?
I also had the same problem.
Can you try setting you internet-intranet security settings to Medium-Low and then try generating the reports? There seems to be some problem with storing of cookies because of which it gives this error.
Hope it helps!!!
Hi BradB,
what are the things that can cause such error in the pageload if it's a postback?
i encountered this error but my coding uses !IsPostBack , will that be a difference?
I figured out a workaround. It appears that the error occurs when you set the ServerPage during the postback. Don't explicitly set the ReportServerUrl or ReportPath during postback and it should work:
/* Insert the following two lines before setting ReportServerUrl or ReportPath */
if (IsPostBack)
return;
Report.ServerReport.ReportServerUrl = new Uri(@"http://localhost/ReportServer");
Report.ServerReport.ReportPath = @"/MyReportDirectory/MyReport";