带有.rdlc报表的项目发布需要注意的问题

我们的项目终于接近了尾声。但是在发布到IIS时,却发生了问题,今天记录一下。
问题:
“An error occurred during local report processing.
The definition of the report 
'Main Report' is invalid.
An unexpected error occurred 
in Report Processing.
未能加载文件或程序集“Microsoft.ReportViewer.ProcessingObjectModel, Version
=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件。”
解决办法:
第一步:找到以下2个dll文件:
1) Microsoft.ReportViewer.Common.dll
2) Microsoft.ReportViewer.WebForms.dll
这两个都可以在D:\Program Files\Microsoft Visual Studio 2010\ReportViewer 中找到。
第二步:
找到你机器上的 ReportViewer.exe和ReportViewerLP.exe安装到客户服务器端就可以了。
第三步:
看你的IIS是否添加axd文件映射。
第四步:
看你的IIS的应用程序池中是否存在ReportServer,
如果存在,把你的项目的网站属性里的应用程序池改成ReportServer。
经过这几个步骤,我们的项目终于发布成功啦!
posted @ 2011-08-31 15:02  佳园  阅读(2871)  评论(0编辑  收藏  举报