我在Visual Studio 2017中有一个AspNet MVC项目,之前是在Visual Studio 2015中开发的。该项目包含许多rdlc文件,在我编辑其中一个文件之前都可以正常工作。现在,当我尝试从编辑后的rdlc下载pdf时,会出现以下错误:报告的定义无效或不受此版本的Reporting Services支持。报告定义可能是使用较新版本的Reporting Services创建的,或者包含基于Reporting Services模式不规范或无效的内容。详情:报告定义具有无法升级的无效目标命名空间'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition'。
The rdlc编辑后,其命名空间从http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition更改为http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition。
该项目正在运行.net框架4.6.2,并已安装Microsoft.ReportViewer.Runtime.Common.12.0.2402.15和Microsoft.ReportViewer.Runtime.WebForms.12.0.2402.15 nuget包。
The rdlc编辑后,其命名空间从http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition更改为http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition。
该项目正在运行.net框架4.6.2,并已安装Microsoft.ReportViewer.Runtime.Common.12.0.2402.15和Microsoft.ReportViewer.Runtime.WebForms.12.0.2402.15 nuget包。