I report vengono distribuiti e funzionanti, verificati in Gestione report.Report Viewer Web Control versione 10 fornisce errore nonostante la configurazione corretta
La mia applicazione è un'app MVC2 con il mio rapporto sulla propria pagina aspx. Questa pagina funzionava con la versione 8 del controllo del visualizzatore di report, ma ci siamo spostati su nuovi server, server sql aggiornato e stiamo tentando di aggiornare il nostro sito web in modo che corrispondesse.
I server sono Windows Server 2008 con IIS 7.5.
sto testando sia in Chrome e IE 9.
Nonostante i miei sforzi, ho ancora ottenere questo errore:
Report Viewer Configuration 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=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.
Ma, ho già fatto questo. in effetti, ho anche letto questo da MSDN:
To use IIS 7.0 in Integrated mode, you must remove the HTTP handler in system.web/httpHandlers. Otherwise, IIS will not run the application, but will display an error message instead.
Giusto per essere sicuro, ho provato una combinazione di alcuno, mentre l'aggiunta del gestore in IIS direttamente, solo il gestore HTTP web server nel mio config, solo il gestore HTTP nella mia configurazione, ed entrambi. inizio
Let con il mio web.config
<configuration
<system.web>
<httpRuntime maxQueryStringLength="4096" />
<compilation targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<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" />
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</buildProviders>
</compilation>
</system.web>
<system.webServer>
<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" />
</handlers>
</system.webServer>
</configuration>
Ho le assemblee, il provider di costruire, e il gestore. Cos'altro potrebbe essere sbagliato?
io sono josh confermerò questo funziona :) grazie –
in questo caso puoi contrassegnare la risposta come accettata? – lstanczyk
manca una parola chiave lì ... spero che josh confermerà che funziona! :) –