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

Error message from Telerik Reporting

1 Answer 134 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marshall Long
Top achievements
Rank 1
Marshall Long asked on 20 Jan 2017, 09:28 PM

I am getting an "Exception was unhandled" error along with the following information: Unsupported ReportSource. Cannot create resolver.

I am running in a WinForm system.

I have tried to run my report 2 different ways and both give me the same error message.

Instance #1

  public partial class frmReviewPlans : Form {     public frmReviewPlans() 

  {      

      InitializeComponent();       

     var typeReportSource = new Telerik.Reporting.TypeReportSource();      

     typeReportSource.TypeName = "PlanTracking.Reports.Reports.LCPC.ReviewPlans";       

     rvReviewPlans.ReportSource = typeReportSource;       

     rvReviewPlans.ViewMode = Telerik.ReportViewer.WinForms.ViewMode.PrintPreview;       

     rvReviewPlans.RefreshReport();    

 }

 

Instance #2

    private void btnPrintReport_Click(object sender, EventArgs e) 

  {       

      var typeReportSource = new Telerik.Reporting.TypeReportSource();       

      typeReportSource.TypeName = "PlanTracking.Reports.Reports.LCPC.ReviewPlans";       

      rvReviewPlans.ReportSource = typeReportSource;       

      rvReviewPlans.ViewMode = Telerik.ReportViewer.WinForms.ViewMode.PrintPreview;       

      rvReviewPlans.RefreshReport();

  }

both of these instances are erring rvReviewPlans.ReportSource = typeReportSource.  

Can anybody shed any light on what I am doing wrong or what the error message is telling me?

Any information would be greatly appreciated as I and a co-worker are at a loss as to what it could be.

 

Marshall Long

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 23 Jan 2017, 01:10 PM
Hello Marshall,

This error might occur after the project upgrade when DLL's are locked and/or the project is under source control which prevents the Telerik Reporting Upgrade Wizard from changing their HintPath to Telerik Reporting installation folder.

You can test replacing the required assemblies manually with the new version. After that, set their CopyLocal properties to true and rebuild the project.
Also, make sure you run Visual Studio in administrator mode.

More information about upgrade is available in Upgrading Telerik Reporting Projects help article.

If the issue persists please share the project's  file so we can check the path for the assemblies.


On the side note, name of the report's type passed to TypeReportSource.TypeName needs to consist of the type name, including its namespace, followed by a comma, followed by the display name of the assembly (<namespace>.<report_class>, <assembly_name>).
You can use Type.AssemblyQualifiedName property to set the assembly-qualified name of the report.


Regards,
Katia
Telerik by Progress
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
Tags
General Discussions
Asked by
Marshall Long
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or