How to use Reportviewer in Webapi RRS feed

  • Question

  • User-860343410 posted

    I have a requirement to access SSRS report from asp.net core webapi.
    I am using below code it is working in normal webapplication but it is not working in asp.net core Webapi.

    I have installed nuget package for "microsoft report viewer".
    But iam getting error at reportviewer object creation.
    "An unhandled exception occurred while processing the request.
    TypeLoadException: Could not load type 'System.Web.UI.WebControls.CompositeControl' from assembly 'System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'."

    And iam getting error at below line :Microsoft.Reporting.WebForms.ReportViewer rview = new Microsoft.Reporting.WebForms.ReportViewer();

    How to use reportviewer control in asp.net core Webapi.Any suggestions.

    Tuesday, December 11, 2018 8:11 AM

All replies