R – ASP.NET ReportViewer local mode performance (expression_host regeneration)

asp.netreportviewer

I have a simple ASP.NET web form with several ReportViewer controls running in local mode. Every time the page loads, each ReportViewer loads the report definition and also regenerates the dynamic expression_host assembly. This is obviously time consuming and will not scale very well. Is there any way to have the ReportViewer cache the report definition and the dynamic expression_host assemblies?

Best Answer

The problem is calling reset on the report viewr object. You will need to cache the report viewer.

Also call Clear on the report.localreport.dataset if you using objects as the data souce.