question

AlekseyKrotov-5524 avatar image
0 Votes"
AlekseyKrotov-5524 asked AlekseyKrotov-5524 edited

ReportViewer control fails via IIS web farm

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.


dotnet-csharpsql-server-reporting-serviceswindows-server-iisdotnet-aspnet-webforms
image.png (42.7 KiB)
image.png (82.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Joyzhao-MSFT avatar image
0 Votes"
Joyzhao-MSFT answered AlekseyKrotov-5524 commented

Hi @AlekseyKrotov-5524 ,

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.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

In 2017 and later versions, the default path of the web config file is as follows:
C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer

Modify the file as follows:

202028-01.jpg


0 Votes 0 ·
01.jpg (211.2 KiB)

I've 3 levels:
- IIS ARR reverse proxy that redirects requests to correct IIS server/farm. It stands right after a firewall.
No ASP .Net is installed or configured there.
- IIS web server with a site with added ASP .Net ReportViewer control
(there're already required records):
202108-image.png

202125-image.png


  • SSRS server.
    202165-image.png


0 Votes 0 ·
image.png (56.5 KiB)
image.png (110.3 KiB)
image.png (102.8 KiB)

More of it Safari returns broken web interface (in compare to Chrome):
202193-image.png

Error list:
202168-image.png

Problem AXD link is accessible:
202232-image.png


0 Votes 0 ·
image.png (123.2 KiB)
image.png (162.2 KiB)
image.png (36.3 KiB)
AlekseyKrotov-5524 avatar image
0 Votes"
AlekseyKrotov-5524 answered AlekseyKrotov-5524 commented

@Joyzhao-MSFT what do you think?

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Since this kind of question is beyond my ability, I suggest you add winform/webform/dotnet related tags on this kind of question for more expert help.

1 Vote 1 ·

OK, thanks. I updated tags list

0 Votes 0 ·