0

アプリケーションは で開発されていVS 2008ます。レポート ビューアーを使用して、SQL Server 2005サーバー上の SSRS からレポートを呼び出します。

Error:
Server Error in '/AppName' Application. 

Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Source Error: 
Line 41: <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0

私の推測では、それは.Net 3.5vsのせいだと.Net 2.0思います。Application Server にはありませんし3.5、今後もありません。

アプリケーションVS 2008に適した Report Viewer を使用するように修正するにはどうすればよいですか?.Net 2

4

2 に答える 2

0

2005 Report Viewer と 2008 Report Viewer の両方をサーバーに配置することで、この問題を解決しました。返信ありがとうございます。

于 2009-05-19T13:49:20.073 に答える
0

プロジェクトの ReportViewer 参照に対して Copy Local = True を設定すると、公開時に必要なバージョンの dll が bin フォルダーにコピーされます。

詳細については、 http://dotnetslackers.com/_NET/re-100203_Error_Could_not_load_file_or_assembly_Microsoft_ReportViewer_WebForms_Version_9_0_0_0.aspxを参照してください。

于 2009-04-28T09:37:48.563 に答える