How to fix ReportsControllerBase is obsolete warning
Environment
Product Version | 14.0.20.115+ |
Product | Progress® Telerik® Reporting |
Description
In R1 2020 we made some improvements and now you can use Dependency Injection and pass the configuration settings in the constructor of the ReportsController.
Error Message
ReportsControllerBase is obsolete
Cause\Possible Cause(s)
Upgrade to version to 14.0.20.115+
Solution
- Change the ReportsController as follows:
public ReportsController(IReportServiceConfiguration reportServiceConfiguration)
: base(reportServiceConfiguration)
{
}
- Set this configuration as described in step 4 of Setup the Startup.cs file for the Reports service.
You can also check our .NET Core demo project which can be found in C:\Program Files (x86)\Progress\Telerik Reporting Version \Examples\CSharp\Asp.NetCoreDemo