【问题标题】:The definition of this report is not valid or supported by this version of Reporting Services此报告的定义无效或不受此版本的 Reporting Services 支持
【发布时间】:2014-09-22 09:12:56
【问题描述】:

我在ASP.Net Web Application 中使用RDLC 报告。在开发版本中,我的 Reports 运行良好,但是当我将其部署到服务器上的 IIS 时,出现以下错误。

我已经检查了报告查看器的版本,它是一样的...

“/”应用程序中的服务器错误。

此报表的定义无效或不受此版本的 Reporting Services 支持。报表定义可能是使用更高版本的 Reporting Services 创建的,或者包含基于 Reporting Services 架构格式不正确或无效的内容。详细信息:根级别的数据无效。第 1 行,位置 1。

【问题讨论】:

  • RDLC 在您的开发机器上工作正常吗?你的框架是什么版本的?
  • 是的,它在开发机器上工作... Framework v 4.0
  • 好的。出于测试目的,创建一个空白 RDL​​C 并尝试在您的 ASP.Net 中调用它,看看您是否得到相同的错误。你的视觉工作室是什么版本的?

标签: asp.net reporting-services iis-7 rdlc


【解决方案1】:
  1. 将下面的dll添加到/bin文件夹

    • Microsoft.ReportViewer.Common.dll
    • Microsoft.ReportViewer.ProcessingObjectModel.dll
    • Microsoft.ReportViewer.WebForms.dll
  2. 展开文件发布选项,然后选中允许此预编译 网站可更新。

【讨论】:

  • 我在尝试从 Azure Web 应用查看 rdlc 文件时遇到了这个问题。应用2后它起作用了。非常感谢。
【解决方案2】:

从 Web.config 中删除以下行:

<buildProviders>
  <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
</buildProviders>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-10-07
    • 2011-12-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多