gpt4 book ai didi

c# - ReportViewer 错误 - 报告的定义“无效。无法加载文件或程序集 Microsoft.ReportViewer.ProcessingObjectMode

转载 作者:太空狗 更新时间:2023-10-29 22:03:19 24 4
gpt4 key购买 nike

我的项目中有 ReportViewer。当我在 Vsual Studio 2012 的 InstallShield 中创建此文件的 .exe 时,我将其添加到 Redistributables Microsoft ReportViewer 2010 中。

当我在 Windows 8 上安装我的应用程序时 - 每个 ReportViewer 都会正确显示它的报告。

我在 Windows XP 上遇到问题,ReportViewer 加载正确但显示此错误而不是正确的报告:

An error occurred during local report processing. The definition of the report " is invalid. An unexpected error ocurred in Report Processing.

Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectMode. Version =11.0.0., Culture=neutral, PublicKeyToken=89845dc8080cc91 or one of its dependencies. this system cannot find the file specified.

我向您保证,我在引用中添加了 Microsoft.ReportViewer.Winfroms 11.0.0.0Copy Local = true

我该如何解决这个问题?

最佳答案

我对标记为答案的回复投了赞成票,因为事实上我缺少 .dll - 但我没有按照@Marek 建议的方式修复它。我正在使用 VS2013 并安装 Microsoft.Reporting nuget 包解决了这个问题。我会建议任何有这个问题的人尝试这个。这样,您会自动获得所有依赖项。

enter image description here

关于c# - ReportViewer 错误 - 报告的定义“无效。无法加载文件或程序集 Microsoft.ReportViewer.ProcessingObjectMode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18415691/

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