页面中使用ReportViewer发布到服务器后不能正常使用
szhuk 2010-09-10 11:46:41 还是提示:分析器错误消息: 未能加载文件或程序集“Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件。
我查了相关帖子说要把
解决办法就是把:虚拟目录下的 所有dll 到拷贝到bin目录下。bin目录下一定要有以下3个文件。
1) Microsoft.ReportViewer.Common.dll
2) Microsoft.ReportViewer.ProcessingObjectModel.dll
3) Microsoft.ReportViewer.WebForms.dll
因为我开发环境的机器重新装过了,我在系统中搜索
第一个和第三个我找到了,第二个没有找到,把两个DLL复制到bin后提示
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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file.
后来在网上下载了一个ProcessingObjectModel,提示依旧
有遇到并解决的朋友请帮一下。