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

Alessio Morganti 96 Reputation points

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:

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,870 questions
{count} votes

Accepted answer
  1. Alessio Morganti 96 Reputation points

    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.

    <requestLimits maxQueryString="3000" maxUrl="1000"/>


    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Isabellaz-1451 3,616 Reputation points

    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 .

    Best Regards,

    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