Windows Azure网站(WAWS)上的ReportViewer问题

时间:2012-11-26 16:59:43

标签: azure reportviewer azure-web-sites

在我的一个项目中,我使用了reportviewer控件来显示网页上的报告,并且在Azure上传时我遵循了上述步骤here

上传后,当我运行该报告网页时,它会给我以下错误

An error occurred during local report processing.
The definition of the report 'Reports\Report1.rdlc' is invalid.
An unexpected error occurred in Report Processing.
Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, >    
Version=10.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.

这应该是什么原因?

更新

我添加了以下2个dll,如下图所示 Microsoft.ReportViewer.Common.dll(10.0)
Microsoft.ReportViewer.WebForms.dll(10.0)

enter image description here

2 个答案:

答案 0 :(得分:2)

经过长时间的研究后,我从this link

找到了问题的解决方案

缺少dlls参考的问题

  • Microsoft.ReportViewer.ProcessingObjectModel.dll
  • Microsoft.RevportViewer.DataVisualization.dll

但安装后我无法在 C:\ Windows \ Microsoft.NET \ assembly \ GAC_MSIL

中找到这些dll

但是此路径中有可用的程序集文件 C:\ Windows \ assembly 然后我直接使用VS2010添加了这些dll,如下图所示

enter image description here

它有效!

答案 1 :(得分:1)

您在此项目中使用的ReportViewer版本是什么?是否可以指定项目中包含的参考DLL的数量和数量?这将有助于确保您已在项目中正确包含所有DLL。您必须使用与Azure DB兼容的Report Viewer SP1和相同的SP1语言包。

我建议将FTP发送到您的网站,并验证您在项目中配置时是否正确上传了所有DLL。如果所有配置的文件都进入文件服务器,这是检查Windows Azure网站的最佳方法。

相关问题