I have a site thats working fine - I added a page with a reportviewer control and get the error message
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=9.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file.
I added this to the system.web section of web.config, and when I do - the entire site no longer works, I get a "500 - Internal server error."
Matt_McNally
Member
2 Points
6 Posts
Add ReportViewer httphandler and entire website errors
Oct 20, 2010 10:07 PM|LINK
I have a site thats working fine - I added a page with a reportviewer control and get the error message
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=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file.
I added this to the system.web section of web.config, and when I do - the entire site no longer works, I get a "500 - Internal server error."
The web.config currently reads:
<?xml version="1.0"?> <configuration> <connectionStrings> <add connectionString="Server=server; Database=database; User ID=user; Password= password" name="ConnectionString" providerName="System.Data.SqlClient"/> </connectionStrings> <system.web> <customErrors mode="Off"/> <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"> <assemblies> <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> </assemblies> </compilation> <!--<httpHandlers> <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </httpHandlers>--> </system.web> <system.net> <mailSettings> <smtp from="email"> <network defaultCredentials="false" host="host" password="password" userName="username"/> </smtp> </mailSettings> </system.net> </configuration>Anyone have any advice as to why this happens?
Rrsl
Member
12 Points
1 Post
Re: Add ReportViewer httphandler and entire website errors
Nov 01, 2010 02:03 PM|LINK
You need to install the Microsoft Report Viewer Redistributable 2008 on your server available at
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=CC96C246-61E5-4D9E-BB5F-416D75A1B9EF
The 'Ver 9' in your screen shot indicates you are using VS 2008
This will insert the following DLL's in the server GAC
1. Microsoft.ReportViewer.Common.dll
2. Microsoft.ReportViewer.ProcessingObjectModel.dll
3. Microsoft.ReportViewer.WebForms.dll
Alternatively you could just copy these Dlls to your bin
The above installation will also provide you with
Microsoft.ReportViewer.WinForms.dll
You will need this should you create a desktop application.