gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 17:49:09 27 4
gpt4 key购买 nike

我创建了一个特定的 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com