Last post Dec 12, 2018 09:48 AM by Wei Zhang
Dec 11, 2018 08:11 AM|venkyy|LINK
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=22.214.171.124, 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.
Dec 12, 2018 09:48 AM|Wei Zhang|LINK
SSRS report is an ASP.NET Web Forms control. You need something you can integrate into your ASP.NET Core/MVC app or non-ASP.NET app.However Microsoft is not implementing or bringing RDLC report viewer into aspnet core. Instead they are
purchasing a product to fill the void. Here is the link ,I hope it will help you.
Link to issue - https://github.com/aspnet/Home/issues/1528