Problem with infinite contour of WebForm.ReportViewer

I have a strange problem in Visual Studio 2010 (C #) using a report viewer to load an RDL file.

I use the following code to load RDL:

//get the data set and then //. //. //pass the report to the viewer using (FileStream stream = new FileStream(_AccessReportDocument.FileName, FileMode.Open)) { this.AccessReportViewer.LocalReport.LoadReportDefinition(stream); } this.AccessReportViewer.LocalReport.Refresh(); 

The problems are that when the piece of code above reaches the last line, the code goes to the "Unloading Method" page and then returns to this.AccessReportViewer.LocalReport.Refresh (); that is, to an infinite loop, Has anyone experienced this before? I read that there are problems with the report viewer for vs 2010, but mostly with the settings, which I am not trying to do yet ....

Debugging shows that all data sets, etc. retrieved for sure - so this is not a problem.

+4
source share
1 answer

This can happen with VS2010 if you do not check the postback when configuring the data source. This is due to changes made to the report viewer for asynchronous data loading. Full explanation here:

Reports never stop Downloading from VS 2010

+13
source

Source: https://habr.com/ru/post/1390876/


All Articles