How to use ReportViewerForMVC in ASP.NET CORE Web Application

Gee Soon 0 Reputation points
2023-01-27T10:58:24.45+00:00

I am trying to integrate SSRS report into my asp.net core web app. I followed some tutorial on how to setup report viewer in asp.net mvc using the ReportViewerForMVC nuget package. However I encounter the following error. Hope someone can help to guide me on how to achieve this. Thanks alot!

User's image

User's image

User's image

Developer technologies | ASP.NET | ASP.NET Core
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,063 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2023-01-27T11:10:40.9466667+00:00

    Review the example project at [https://github.com/chasoliveira/ReportViewerForMvc/blob/master/ReportViewerForMvc.Example/ReportViewerWebForm.aspx

    Not @Html is used, but

    <rsweb:ReportViewer ID="ReportViewer1" runat="server"></rsweb:ReportViewer>
    
    
    0 comments No comments

  2. Anonymous
    2023-01-30T02:09:28.2733333+00:00

    Hi @Gee Soon

    The ReportViewerForMvc14 package applies to .Net Framework application (ASP.NET 4.x), instead of applies to .NET application (.NET Core 1.0 - 3.1, .NET 5, and later versions of .NET.). So, this package not working in the Asp.net core application.

    User's image

    So, in asp.net core application, you need to find other package to show the report view. Try to search "report viewer for asp.net core" online, and you might find some package to display the report.

    [Note] Microsoft team has no plans to have official Reporting Services / ReportViewer package for .NET Core. So, for these third-party packages, you'd better to check the risk and compatible.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,

    Dillion

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.