Tuesday, November 19, 2013

Telerik Reports for ASP.NET MVC 4 Caching issue.

I recently used Telerik reports, and i got into a problem where report viewer cached the previous versions other than refreshing the report.

I followed the sample in below link from telerik in order to generate my report.


below is the code from my report viewer.

        .ReportSource(new TypeReportSource() { TypeName = "MvcReportApplication.MyReport.Report5, MvcReportApplication" })

To disable the report viewer caching just change PersistSession(true) to PersistSession(false) and you are good to go.

1 comment:
Write comments
Recommended Posts × +