c# - 向 RDLC 报告添加新数据集时 Visual Studio 挂起

标签 c# visual-studio reporting-services visual-studio-2015 rdlc

我创建了一个特定的 report.rdlc,然后我想将新的 datatable 添加到我的报告中。

但在更改数据集后,尝试将新数据集添加到我的报告中。

visual studio 每次都崩溃并在不添加新数据集的情况下重新启动!

enter image description here

我搜索了这个错误并根据 Microsoft ,它说:

This is one of the oldest bugs in visual studio and it can easily crash "all versions" of visual studio (which is VS.nET 2015 update 1 right now). it happens when you move your project to another directory and report viewer component tries to open dataset schema from previous location. in order to fix this open rdlc file with a text editor. look for a property named "SchemaPath"and update the path of your dataset file there .


我做了这个建议,然后清理项目并重建它但同样的问题!如何解决这个问题?

<rd:DataSetInfo>
        <rd:DataSetName>AnalysisDS1</rd:DataSetName>
        <rd:SchemaPath>N:\ProjData\FinanceList\FinanceList\Finance\App_Code\AnalysisDS1.xsd</rd:SchemaPath>
        <rd:TableName>AnalysisDT1</rd:TableName>
        <rd:TableAdapterFillMethod />
        <rd:TableAdapterGetDataMethod />
        <rd:TableAdapterName />
</rd:DataSetInfo>

最佳答案

V.S中的这个bug至今没有修复,希望Microsoft修复这个持续存在的问题。


解决方法:

我将一个新项目添加到我的解决方案,然后将我的 RDLC 拖放到我的新项目中,然后添加一个新数据集,完成我的报告并拖动它又回到原来的项目,一切正常。

关于c# - 向 RDLC 报告添加新数据集时 Visual Studio 挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41077028/

相关文章:

c# - "message": "The SSL connection could not be established, see inner exception." in Windows Server 2012 R2

c# - CodeContract.Requires(param != null) 不能证明 param 不会为 null?

c# - 为什么我的抽象基类会出现这个编译错误?

c# - 为什么 Visual Studio 不将 DateTime 设为蓝色关键词?

reporting-services - 在 ssrs 中显示日期名称和月份名称

c# - TCP/IP客户端服务器在c#中通过不同网络进行通信

c# - C# Regex 如何捕获 *| 之间的所有内容?和 |*?

c# - 母版页内容页面中禁用 Javascript NoScript 标记

sql - SSRS 未按级别(层次结构)显示所有行

reporting-services - 如何在SSRS饼图中进行百分比和计数