Categories

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

Solving ReportViewer Rendering Issue on IIS7

Solving ReportViewer Rendering Issue on IIS7\r\n\r\n\r\n\r\nApplies to:\r\n

    \r\n

  • Internet Information Services 7.0 (IIS7)
  • \r\n

  • Microsoft Report Viewer Redistributable 2005
  • \r\n

\r\nSymptoms:\r\n

    \r\n

  • Unable to render ReportViewer on ASP.NET Web pages while running on IIS7.
  • \r\n

  • You have no problem viewing your reports when running on debug mode with your Visual Studio 2005.
  • \r\n

  • You are able to view your reports on Report Manager but not able to view them on IIS7.
  • \r\n

  • You encounter JavaScript error when loading your report page with ReportViewer. Image buttons such as calendar appear as red ‘X’.
  • \r\n

\r\nCause:\r\n

    \r\n

  • When the ReportViewer control is added to Web Form (.aspx), the\r\nReserved.ReportViewerWebControl.axd httpHandler is added to System.Web section of the Web.Config file. In IIS7, it should be added under System.Webserver section.
  • \r\n

  • IIS7 Handler Mappings does not contain Reserved.ReportViewerWebControl.axd httpHandler, and therefore unable to render the ReportViewer elements needed by the JavaSript.
  • \r\n

\r\nResolution:\r\n

    \r\n

  • Open Internet Information Services (IIS) Manager and select your Web application.
  • \r\n

  • Under IIS area, double-click on Handler Mappings icon.
  • \r\n

  • At the Action pane on your right, click on Add Managed Handler.
  • \r\n

  • At the Add Managed Handler dialog, enter the following:\r\nRequest path: Reserved.ReportViewerWebControl.axd\r\nType: Microsoft.Reporting.WebForms.HttpHandler\r\nName: Reserved-ReportViewerWebControl-axd
  • \r\n

  • Click OK.
  • \r\n

\r\nReserved-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:\r\n

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

\r\nRun your report again.

Comments are closed.