![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8SKd-qsmXQFS9-EcetWQA6udtweGqCV65pcBM8gs9XhAL2NQGz1q4wqx9WR0tYUGm_A8Du2uJHhGwcPO3FKnc9eUSpF_zY-UhrH6tHnxLqZNAV4TwR-_9tEfx8E-qsHxwwc77KAnOmxs/s400/SSRStoolbar_thumb.jpg)
Il problema consiste nel fatto che Visual Studio configura il file web.config con i parametri per IIS6 e non per IIS7
Per risolvere il problema aprire Gestione Internet Information Services (IIS), fare click sul sito web, fare click su Mapping Gestori.
A questo punto fare click in azioni su "Aggiungi gestore gestito..."
In "Percorso Richiesta" digitare "Reserved.ReportViewerWebControl.axd"
In "Tipo" digitare "Microsoft.Reporting.WebForms.HttpHandler" e a questo punto dovrebbe essersi aperto l'elenco sottostante e scegliere la voce completa come ad esempio: "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Nel campo "Nome" digitare "Reserved-ReportViewerWebControl-axd"
Confermare la maschera.
A questo punto il report dovrebbe essere funzionante.
Lo script ha aggiunto al nodo "system.webServer", il nodo "handlers" e in questo la seguente stringa:
<add name="Reserved-ReportViewerWebControl-axd" path="Reserved.ReportViewerWebControl.axd" precondition="integratedMode" resourcetype="Unspecified" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" verb="*">
Nessun commento:
Posta un commento