An error occurred during local report processing: report definition has an invalid target namespace

万恶的An error occurred during local report processing异常

出现这个异常有很多原因,下面介绍一下由于VS版本问题造成这样的异常:

The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded.

当时修改rdlc报表出现了这个错误

当时是要新增一个rdlc报表模板,我就复制了一个原来的rdlc报表,在原有报表的基础上修改,之后保存完看报表代码发现报表的命名空间变了,从2008变到2016,并且报表代码格式都变了,然后就疯狂报那个错。

解决办法:

将:<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

改为:<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

 

删除 :

<ReportSection>
  <ReportSections>

节点中间内容不要删除

</ReportSection>
  </ReportSections>

 

删除:

<ReportParametersLayout>
  里面的也全部删除
  </ReportParametersLayout>

 

保存,就会恢复之前的格式。

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值