We are trying to migrate our reports from Visual 2008 to Visual 2010, but we cannot get ASP.NET ReportViewer to work on our IIS 7.5 machines. OS - Windows 7.
We translated all our links to Microsoft.Reporting.WebForms 10.0 in the code and in the configuration files. Our Web.config file is the following sections regarding ReportViewer:
<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" /> </httpHandlers> <hostingEnvironment shutdownTimeout="30" shadowCopyBinAssemblies="false" /> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/> <add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/> <add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/> <add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/> </assemblies> <buildProviders> <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </buildProviders> </compilation> <authentication mode="Windows" /> <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" /> <httpRuntime requestValidationMode="2.0" /> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <handlers> <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" /> <add verb="GET" name ="CrystalImageHandler" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> </handlers> <security> <requestFiltering> <requestLimits maxAllowedContentLength="4294967295" /> </requestFiltering> </security> </system.webServer>
When loading aspx, which contains the ReportViewer control, we see only the Report Viewer toolbar, and the rest of the page is empty. The source code for this page reports the following:
Web-based report control in HTTP report view mode. The handler was not registered in the web.config application file. Add the web.config file to the system.web / httpHandlers section or add handlers to the system.webServer / section for Internet Information Services 7 or later.
We know that ReportViewer 10.0 does not work in classic mode, so the application pool is configured for integration. We tried to remove the handle section from system.web, but no luck.
Can anyone let us know how to get a working configuration of an ASP.NET application with Report Viewer 10.0 on top of IIS 7.5?
Thank you very much in advance.
Jose Antonio Arroba