This is a migrated thread and some comments may be shown as answers.

Custom Report Resolver not called

4 Answers 199 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arthur
Top achievements
Rank 1
Veteran
Arthur asked on 28 Jul 2017, 12:21 PM

My boss and I created a custom report resolver that works on his machine but not mine.

The ResolveReport() method is not called on my machine. We've got the exact same code.

Could you give us any hint to try and debug this issue?

Regards

public class ReportsController : ReportsControllerBase
{
  public ReportsController()
  {
    this.ReportServiceConfiguration = new ReportServiceConfiguration()
    {
      ReportResolver = new CustomReportResolver(),
      Storage = new Telerik.Reporting.Cache.File.FileStorage()    
    };
  }
}
 
public class CustomReportResolver : ReportResolverBase
{
  protected override ReportSource ResolveReport(string report)
  {
    TypeReportSource _ReportSource = new TypeReportSource()
    {
      TypeName = typeof(MADashboard).AssemblyQualifiedName
    };
    return _ReportSource;
  }
}

4 Answers, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 01 Aug 2017, 02:10 PM

Occasionally it happens to me too that some project is not compiled or the assemblies in the bin are not updated. Try to clean the solution, delete bin and obj directories. Rebuild and make sure the assemblies in the executable project are updated.  

Additionally, make sure that you don't have other ReportControllerBase implementations that may conflict with this one.

0
Senthil
Top achievements
Rank 1
answered on 27 Dec 2017, 08:20 PM
I see this issue still. I tried all the approach listed above but no luck. 
0
Katia
Telerik team
answered on 02 Jan 2018, 11:55 AM
Hi Senthil,

Check if ReportServiceConfiguration.ReportResolver property is set to an instance of the custom report resolver - example is provided in step 2 of How To: Implement a Custom Report Resolver help article.
In case the resolver is still not called, share the code of ReportsController and custom resolver so we can review it. You can also attach a sample project that reproduces the issue in a support ticket so we can test it locally.


Regards,
Katia
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Senthil
Top achievements
Rank 1
answered on 02 Jan 2018, 02:55 PM
Thanks Katia. I figured it out. I was nothing to do with resolver. I was using ASP.NET core project example which did not have App.Config file but web.config. I added App.config which solved all the issues. 
Tags
General Discussions
Asked by
Arthur
Top achievements
Rank 1
Veteran
Answers by
Squall
Top achievements
Rank 1
Senthil
Top achievements
Rank 1
Katia
Telerik team
Share this question
or