Click here to Skip to main content
15,880,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

Do you know why the reportviewer control in my webform is disabled when run?

Thanks
Posted
Updated 9-Aug-12 4:31am
v2
Comments
Kenneth Haugland 9-Aug-12 10:31am    
I dont understand your question, could you Improve it? ;)

1 solution

No. We don't know why it is so because you did not shared any information around it.

Though, have a look at this similar thread[^] which suggests adding:
HTML
<add name='Reserved-ReportViewerWebControl-axd' path='Reserved.ReportViewerWebControl.axd' verb='*' type='Microsoft.Reporting.WebForms.HttpHandler' resourceType='Unspecified' preCondition='integratedMode' /> 
 
Share this answer
 
Comments
arkiboys 9-Aug-12 11:04am    
Hi, does the code you mentioned go into web.config? if so, where exactly please?
Thanks
arkiboys 9-Aug-12 11:10am    
I already have this in the webconfig and still the reportviewer is readonly when running the website.
<system.web>
<httphandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false">
arkiboys 9-Aug-12 12:38pm    
The reportviewer control is disabled when running the website.
The following is my findings.
Can you see what I have to do please?
Thanks

Note that in web.config I have:

<system.web>
<httphandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false">


In the page which has the disabled report viewer control, I checked the ViewSource , I see these line:

h2>
Report Viewer Configuration Error
<p>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=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file, or add <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.webServer/handlers section for Internet Information Services 7 or later.</p>
Sandeep Mewara 10-Aug-12 0:21am    
It says all what looks like missing and needed for fix.
arkiboys 10-Aug-12 1:38am    
BUt, I already have these in my web.config.
See below:
<system.web>
<httphandlers>
<add type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" verb="*" path="Reserved.ReportViewerWebControl.axd">

...
...
<system.webserver>
<modules runallmanagedmodulesforallrequests="true">
<validation validateintegratedmodeconfiguration="false">
<handlers>
<add name="ReportViewerWebControlHandler" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" verb="*" path="Reserved.ReportViewerWebControl.axd" precondition="integratedMode">

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900