上传报告时出错 [英] Error while uploading a report

查看:62
本文介绍了上传报告时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Visual Studio 2015 创建了一份报告,并从以下链接安装了 SSDT 工具

I have create a report using visual studio 2015 with SSDT Tools installed from the following link

https://msdn.microsoft.com/en-us/mt186501

数据库在 SQL Server 2014 上.但是当我尝试在客户机器上上传报告时,报告在我的机器上工作(其中有 SQL Server 2014 而不是 Visual Studio).我收到以下错误

The database is on SQL Server 2014. The reports work on my machine however when I try to upload a report on customers machine(Which has SQL Server 2014 and not visual studio). I get the following error

此报表的定义无效或受此版本的 Reporting Services 支持.报表定义可能是使用更高版本的 Reporting Services 创建的,或者包含格式不正确或无效的内容Reporting Services 架构.详细信息:报表定义具有无效的目标命名空间http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' 无法升级.(rsInvalidReportDefinition)"

"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. (rsInvalidReportDefinition)"

推荐答案

如果您将解决方案 > 属性 > TargetServerVersion 设置为 SQL Server 2008 R2、2012 或 2014,然后从 bin 文件夹而不是项目文件夹上传 RDL,它应该工作.我遇到了同样的错误并解决了它.

If you have the solution > properties > TargetServerVersion set to SQL Server 2008 R2, 2012 or 2014 and then upload the RDL from the bin folder instead of the project folder, it should work. I was getting the same error and that solved it.

这篇关于上传报告时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆