Export from Report Viewer don't work: 404 File or directory not found

Alessio Morganti 96 Reputation points
2021-10-06T16:21:23.417+00:00

Good evening, I have a reporting services installation on a backend server and a web application with asp.net technology on the frontend server.
The web application is developed with .net framework 4.7.2 and report viewer is version 15 downloaded from nuget from Visual studio 2019.
The web application with report viewer displays the report well but the export does not work, in any format. The error on the page ".../Reserved.ReportViewerWebControl.axd?ReportSession=l4br..." is "404 - File or directory not found.".
Do you have any idea how to solve the problem?
Thanks in advance

The references are:
https://learn.microsoft.com/en-us/sql/reporting-services/application-integration/reportviewer-controls-support?view=sql-server-ver15
https://learn.microsoft.com/en-us/sql/reporting-services/application-integration/integrating-reporting-services-using-reportviewer-controls-get-started?view=sql-server-ver15

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.
2,813 questions
{count} votes

Accepted answer
  1. Alessio Morganti 96 Reputation points
    2021-10-08T06:52:44.533+00:00

    Hi, thanks but in our configuration the reporting services resides on the DB server.
    The error in detail was 404.15. We found that the problem was in the length of the get call for exporting the report which was inconsistent with the default settings of the ASP.NET web application. We solved it by making the maximum url length explicit in the web.config.

    <system.webServer>
    <security>
    <requestFiltering>
    <requestLimits maxQueryString="3000" maxUrl="1000"/>
    </requestFiltering>
    </security>
    </system.webServer>

    Bye

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Isabellaz-1451 3,616 Reputation points
    2021-10-08T02:34:20.24+00:00

    Hi @Alessio Morganti ,

    How about put the web application and the SSRS in one server.
    I think your issue is about the server schema, and it is out of my rage , you can ask on the relevant forum.

    And this is the example of Scale out SSRS deployment to share the same single Report Server Database,you may take a look .
    scale-out-ssrs

    Best Regards,
    Isabella


    If the answer is helpful, please click "Accept Answer" and upvote it.

    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.

    0 comments No comments