2011-11-21 19 views
11

レポートは展開され、正常に動作し、レポートマネージャで確認されます。レポートビューアWebコントロールバージョン10が正しく設定されているにもかかわらずエラーを返す

私のアプリケーションはMVC2アプリケーションで、独自のaspxページに関するレポートがあります。このページは、レポートビューアコントロールのバージョン8で機能しましたが、新しいサーバー、アップグレードされたSQL Serverに移行し、一致するように当社のWebサイトを更新しようとしています。

サーバーはIIS 7.5を使用したWindows Server 2008です。

私は私の最善の努力にもかかわらず、クロムとIE 9

の両方でテストしてい

、私はまだ、このエラーが出る:

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.

しかし、私はすでにこれをやりました。実際に、私も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.

、私はどちらも直接IISにハンドラを追加しながら、私の設定では、単にWebサーバのHTTPハンドラ、単にHTTPハンドラのコンボを試しただけで安全であると

私の設定では、両方。

は、私はアセンブリ、ビルドプロバイダー、およびハンドラを持っている私の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> 

で始まるのをしてみましょう。他に何が間違っているのでしょうか?

答えて

6

私は迅速かつ汚い回避策を発見した - ウェブの設定に、この追加:

<location path="Reserved.ReportViewerWebControl.axd"> 
<system.web> 
    <authorization> 
    <allow users="*" /> 
    </authorization> 
</system.web> 

を私はいくつかの理由のためにページではなく、HTTPを得るためのReserved.ReportViewerWebControl.axdを要求されたときというフィドラーで見ました200応答サーバは、302を送って - login.aspxのために移動にreturnurl = "Reserved.ReportViewerWebControl.axdだから、ハンドラパスにすべてのユーザーを許可しても問題が解決し

+0

私はジョシュさんがこの作品を確認します:)ありがとう –

+0

この場合、あなたは受け入れられたとして答えることができますか? – lstanczyk

+0

そこにキーワードがありません...私はジョシュがこの作品を確認することを望んでいます! :) –

1

を私はIIS7上のレポートビューアーレンダリングの問題と思っ?。。手動でレポートビューアハンドルをIIS7にマップしました。

?インターネットインフォメーションサービス(IIS)マネージャを開き、Webアプリケーションを選択します。

•IIS領域で、[ハンドラマッピング]アイコンをダブルクリックします。

•右側の[アクション]ペインで、[マネージハンドラの追加]をクリックします。

要求パス:ハンドラのダイアログマネージド追加で

•、次のように入力しますReserved.ReportViewerWebControl.axd

タイプ:Microsoft.Reporting.WebForms.HttpHandler

名前:リザーブ-ReportViewerWebControl -axd

•[OK]をクリックします。

もまだ地雷が働いていない


を追加することによって、ウェブの設定によって変更します。私は上記の解決策が他人を助けると思った。

+0

うん、これは私のためにそれを修正しました(IIS7、Server 2008) – odinel

-1

私は、asp.netプロジェクトから不要なmvcアセンブリを削除することでこれを試しています。そこで、単純な解決策は、WebプロジェクトのBinフォルダからWebMatrix。*。dllを削除することでした。それはmvcフレームワークに属しています。

関連する問題