2

在我的应用程序中,我们在下面提到了两个 dll:

  1. Microsoft.ReportViewer.Common.dll
  2. Microsoft.ReportViewer.WebForms.dll

使用 ReportViewer 2010 版

但是在部署到 azure web 应用程序后,我发现 .rdlc 文件在本地开发环境中工作时无效。在本地环境中,我安装了 reportviewer 安装程序。

以下是例外情况:

本地报告处理过程中发生错误。报告“Reports\Report1.rdlc”的定义无效。

是否可以访问系统驱动器并在 Web 应用程序中安装 reportviewer.exe?

或者请建议我一种可以生成 rdlc 文件的方法

4

1 回答 1

2

这是解决方案:

  1. 在项目参考中添加 Microsoft.ReportViewer.ProcessingObjectModel.dll 以及 Microsoft.ReportViewer.Common.dll 和 Microsoft.ReportViewer.WebForms.dll
  2. 确保部署环境的 bin 文件夹中存在 Microsoft.ReportViewer.ProcessingObjectModel.dll、Microsoft.ReportViewer.Common.dll 和 Microsoft.ReportViewer.WebForms.dll。

注意:确保所有 dll 的版本相同。

于 2018-10-16T13:08:35.260 回答