gpt4 book ai didi

c# - RDLC 报告在将 Visual Studio 2015 更改为 Visual Studio 2017 后停止工作

转载 作者:可可西里 更新时间:2023-11-01 08:55:05 24 4
gpt4 key购买 nike

我在 Visual Studio 2017 中有一个 AspNet MVC 项目,该项目之前是在 Visual Studio 2015 中开发的。该项目包含许多 rdlc 文件,在我编辑其中一个文件之前,这些文件运行良好。现在,当我尝试从编辑过的 rdlc 下载 pdf 时,出现此错误:

The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded.

所编辑的 rdlc 将其命名空间从 http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition 更改为至 http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition

该项目使用net framework 4.6.2运行,并安装了Microsoft.ReportViewer.Runtime.Common.12.0.2402.15Microsoft.ReportViewer。 Runtime.WebForms.12.0.2402.15 nuget 包

最佳答案

我有同样的问题,我解决了它卸载 nuget 包 Microsoft.ReportViewer.Runtime.CommonMicrosoft.ReportViewer.Runtime.WebForms 并安装包 < strong>Microsoft.ReportingServices.ReportViewerControl.WebForms.140.340.80。我想强调的是,我必须添加对 System.Windows.Forms 的引用,因为我用来呈现报告的类 ReportDataSource 中存在依赖关系

关于c# - RDLC 报告在将 Visual Studio 2015 更改为 Visual Studio 2017 后停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45090487/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com