IIS - Reports not showing... - Asked By shah zeb on 17-Oct-11 02:53 AM


 Since i migrated my web application from visual studio 2008 to visual 2010.
Below is the 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=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file.

i installed reportviewer 9.0 but no gains .
How to solve this problem?


Suchit shah replied to shah zeb on 17-Oct-11 02:56 AM

Did you drag the Crystal Report Viewer control from the toolbox to your web page? If not, try doing it that way. Visual Studio is usually good to find all the appropriate references and add them when you do things that way.

Aside from that, you may need to add some additional libraries to your web.config. In my apps using Crystal, I have the following files referenced:


<add assembly="CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.Shared, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.ReportSource, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.Enterprise.Framework, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.CrystalReports.Engine, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>


In addition, just before the closing system.web tag, I also have the following httpHandler added:


<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>


My app is using version 11r2 of Crystal Reports, so a few of the libraries may or may not exist, but most of them are the same.

dipa ahuja replied to shah zeb on 17-Oct-11 02:58 AM
Have you done as the error is saying?

That is inside web.config  add the :

<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

inside the httpHandler section
Jitendra Faye replied to shah zeb on 17-Oct-11 03:02 AM
Add following references

1) Microsoft.ReportViewer.Common.dll
2) Microsoft.ReportViewer.WebForms
3) Microsoft.ReportViewer.WebForms.dll
4) Microsoft.ReportViewer.WinForms
5) Microsoft.ReportViewer.WinForms.dll
6) Microsoft.ReportViewer.ProcessingObjectModel.dll
Reena Jain replied to shah zeb on 17-Oct-11 03:09 AM


In IIS 7, we need to add Reserved.ReportViewerWebControl.axd httpHandler.


  • 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"

For more information, see http://otkfounder.blogspot.com/2007/11/solving-reportviewer-rendering-issue-on.html 

shah zeb replied to Reena Jain on 17-Oct-11 06:46 AM
i already tried this before posting my question he on the forum.
But no gains.
the only i did i migrated code from net framework 3.5 to 4.0.
Is than an issue