Report Viewer Web Control HTTP Handler issue under IIS 7.5
Using of Fiddler was bad idea: "Report Viewer Configuration Error" html block is a hidden div used from javascript.
I issue was with ServerReport.ReportServerCredentials I didn;t check that IsPostBack.
Correct code is:
if (!this.IsPostBack && !this.IsAsync)
{
ReportViewer1.ServerReport.ReportServerCredentials = new ReportServerCredentials();
}
June 20th, 2011 6:20pm
I have ASP.NET 4.0 WebApplication with ReportViewer page. I can see ReportViewer with Report Parameters Prompt. But when I click "View Report" I get nothing (if I run my browser in IE7 compat mode I receive JavaScript error).
I used Fiddler and found that IIS returns page with following data:
<h2>
Report Viewer Configuration Error
</h2><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>
But I have Http Handlers configured as specified here
http://msdn.microsoft.com/en-us/library/ms251661.aspx
Also I have ReportView Redist installed.
Free Windows Admin Tool Kit Click here and download it now
June 20th, 2011 7:21pm