2012-05-09 14 views
0

SharePoint内でレポートを表示したい。私のASPXページには、1つのMicrosoft.ReportViewer.WebForms.ReportViewerコントロールが含まれています。私はこのページを開こうとすると、私はエラーを取得する:レポートビューアの設定エラー

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.

The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- 401 UNAUTHORIZED<RSError xmlns="http://www.microsoft.com/sql/reportingservices"><MoreInformation><Message>Unbekannter Fehler beim Reporting Services-Endpunkt für diese SharePoint-Website. Wenden Sie sich an den Administrator der SharePoint-Website.</Message></MoreInformation></RSError> --.

私は確かにweb.configファイルには、このセクションを追加する必要がありますか?そして私はこれをどこに加えるべきですか?

答えて

4

A

handlersセクションでは、次のセクションを追加してみセクションで system.web

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

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" /> 

を追加ctuallyエラーメッセージはすべてを説明します!それが役に立てば幸い。

1

この私は、この問題を解決した後に、完全なweb.configファイル:

<?xml version="1.0" encoding="utf-8"?> 
 
<!-- 
 
    For more information on how to configure your ASP.NET application, please visit 
 
    http://go.microsoft.com/fwlink/?LinkId=169433 
 
    --> 
 
<configuration> 
 
<system.web> 
 
    <httpHandlers> 
 
     <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> 
 
    </httpHandlers> 
 
    </system.web> 
 
    <system.webServer> 
 
    <validation validateIntegratedModeConfiguration="false" /> 
 
    <defaultDocument> 
 
     <files> 
 
     <add value="PreviewReport.aspx" /> 
 
     </files> 
 
    </defaultDocument> 
 
    <handlers> 
 
     <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> 
 
    </handlers> 
 
    </system.webServer> 
 
</configuration>

1

感謝。 共有ホストでgodaddyを使用していますが、この解決策は私のアプリケーションに役立ちます。

<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" /> 

</handlers> 
</system.webServer> 
関連する問題