【问题标题】:rdlc in VS2018 WebApi : The report definition has an invalid target namespace which cannot be upgradedVS2018 WebApi 中的 rdlc:报告定义的目标命名空间无效,无法升级
【发布时间】:2018-11-13 12:18:03
【问题描述】:

我正在基本的 .net WebApi 2.0 中实现 rdlc 报告。

我已经实现了一个运行报告并将其保存在本地文件夹中的基本方法,仅供测试。

当我尝试向报表添加参数时,webapi 方法停止工作并开始返回此消息:

报告定义的目标命名空间“http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition”无效,无法升级

我注意到,当我添加报表参数时,Visual Studio 2017 将架构从:

http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition

http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition

此时我可以在 ReportBuilder 中查看报告,但如果我尝试通过应用程序生成它,我会收到该消息。

现在我将 Visual Studio 更新到最新版本 ( 15.7.3 ),但我认为它不会解决问题。

感谢支持

【问题讨论】:

    标签: c# .net visual-studio rdlc reportbuilder


    【解决方案1】:

    最后我通过删除 ReportViewer 11.0.0 并安装 ReportViewerControl.WebForms 解决了这个问题:

    安装包 Microsoft.ReportingServices.ReportViewerControl.WebForms -Version 140.1000.523

    【讨论】:

      【解决方案2】:

      我尝试更新服务,然后我需要触摸所有页面以将参考版本更改为 14,所以我使用以下答案完成了它并且它有效: Answer

      这是一个临时解决方案,如果你没有修改设计它会起作用

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多