locked
Error 404 on Report Page RRS feed

  • Question

  • Hi

    I have a web page which contains a report and a bar chart.

    I run the website by visual studio and it works properly but when I publish the website and locate it in wwwroot , then browsing the web page over the internet the report is not shown and instead of the report the  Error 404 - File or directory not found. is shown in the report Viewer .

    can anyone help me to solve this ?

    thanks

    • Moved by Harry Zhu Tuesday, June 8, 2010 7:56 AM (From:Crystal Reports for Visual Studio)
    • Edited by Haleh Mardanian Tuesday, August 24, 2010 7:37 AM
    Thursday, June 3, 2010 12:27 PM

Answers

  • I have found the solution to this problem :

    Cause:

    • When the ReportViewer control is added to Web Form (.aspx), the
      Reserved.ReportViewerWebControl.axd httpHandler is added to System.Web section of the Web.Config file. In IIS7, it should be added under System.Webserver section.
    • IIS7 Handler Mappings does not contain Reserved.ReportViewerWebControl.axd httpHandler, and therefore unable to render the ReportViewer elements needed by the JavaSript.

    Resolution

    • Open Internet Information Services (IIS) Manager and select your Web application.
    • Under IIS area, double-click on Handler Mappings icon.
    • At the Action pane on your right, click on Add Managed Handler .
    • At the Add Managed Handler dialog, enter the following:
      Request path: Reserved.ReportViewerWebControl.axd
      Type: Microsoft.Reporting.WebForms.HttpHandler
      Name: Reserved-ReportViewerWebControl-axd
    • Click OK .

    Reserved-ReportViewerWebControl-axd handler is now added to your Handler Mappings list. Notice that the following line has also been added to your Web.config file under the system.webserver's handler section:


    <add name="Reserved-ReportViewerWebControl-axd" path="Reserved.ReportViewerWebControl.axd"
    verb="*" type="Microsoft.Reporting.WebForms.HttpHandler" resourceType="Unspecified"
    />

     

    src : http://otkfounder.blogspot.com/2007/11/solving-reportviewer-rendering-issue-on.html

    Tuesday, August 24, 2010 7:40 AM

All replies

  • Hi,

    For questions relating to crystal report in asp.net, please post to :
    http://forums.asp.net/76.aspx .  You will get better and quicker responses from the experts there.

    Harry


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, June 8, 2010 7:56 AM
  • I have found the solution to this problem :

    Cause:

    • When the ReportViewer control is added to Web Form (.aspx), the
      Reserved.ReportViewerWebControl.axd httpHandler is added to System.Web section of the Web.Config file. In IIS7, it should be added under System.Webserver section.
    • IIS7 Handler Mappings does not contain Reserved.ReportViewerWebControl.axd httpHandler, and therefore unable to render the ReportViewer elements needed by the JavaSript.

    Resolution

    • Open Internet Information Services (IIS) Manager and select your Web application.
    • Under IIS area, double-click on Handler Mappings icon.
    • At the Action pane on your right, click on Add Managed Handler .
    • At the Add Managed Handler dialog, enter the following:
      Request path: Reserved.ReportViewerWebControl.axd
      Type: Microsoft.Reporting.WebForms.HttpHandler
      Name: Reserved-ReportViewerWebControl-axd
    • Click OK .

    Reserved-ReportViewerWebControl-axd handler is now added to your Handler Mappings list. Notice that the following line has also been added to your Web.config file under the system.webserver's handler section:


    <add name="Reserved-ReportViewerWebControl-axd" path="Reserved.ReportViewerWebControl.axd"
    verb="*" type="Microsoft.Reporting.WebForms.HttpHandler" resourceType="Unspecified"
    />

     

    src : http://otkfounder.blogspot.com/2007/11/solving-reportviewer-rendering-issue-on.html

    Tuesday, August 24, 2010 7:40 AM