We have the VS 2005 version of the ReportViewer control on an ASP.NET page. The reports are executed against SQL2008 Reporting services and display correctly. We have Interactive Sorting on the columns which works as expected...usually.
On larger result sets (over 100 pages), the sort stops, displays a white background in the viewer with the words, "The operation has timed out". The ironic part is that it does this in about 3 seconds. I thought I had it when I saw that the ServerReport.Timeout is 2000 ms by default, but changing that to 30,000 ms did not make a difference. It's like it doesn't even have the will to try sorting that much data :) Here's the code:
var rvMain = new ReportViewer {
EnableViewState = true,
ProcessingMode = ProcessingMode.Remote,
ShowRefreshButton = false,
AsyncRendering = true,
ShowCredentialPrompts = false,
ShowDocumentMapButton = true,
DocumentMapCollapsed = true,
};
rvMain.ServerReport.DisplayName = displayName;
rvMain.ServerReport.ReportPath = reportPath;
rvMain.ServerReport.Timeout = 30000;
I have looked at many of the other posts on various timeouts. However, this ONLY HAPPENS WHEN SORTING, and then only on large result sets. Any suggestions would be appreciated!!
UPDATE: The sort does not timeout when the sort is done on the report running directly in SQL Report Manager web site.