ReportViewer control fails via IIS web farm

Aleksey Krotov 1 Reputation point
2022-05-13T12:42:07.917+00:00

I've web farm configuration:

firewall -> IIS farm -> IIS web server
VPN client -> VPN server ---^

IIS Web server hosts ASP .Net MVC site with ReportViewer control, that points to internal SSRS server.
It works fine when I connect through VPN (w/o IIS rewrite rules): 201815-image.png

When I try to reach the same page from Internet I got following error:
201808-image.png

Report Viewer Configuration Error
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb="" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> to the system.web/httpHandlers section of the web.config file, or add <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> to the system.webServer/handlers section for Internet Information Services 7 or later.

Windows development Internet Information Services
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,061 questions
Developer technologies ASP.NET Other
Developer technologies C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Joyzhao-MSFT 15,631 Reputation points
    2022-05-16T02:05:13.607+00:00

    Hi @Aleksey Krotov ,

    Add the following to <system.web> => <httpHandlers> section.

    <add verb="" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />  
    

    Add the following to <system.webServer> => <handlers> section.

    <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />  
    

    Please refer to: ASP.Net: The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config.

    The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file
    Best Regards,
    Joy


    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.


  2. Aleksey Krotov 1 Reputation point
    2022-05-17T12:04:38.76+00:00

    @Joyzhao-MSFT what do you think?


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.