繁体   English   中英

无法加载文件或程序集'CrystalDecisions.Windows.Forms

[英]Could not load file or assembly 'CrystalDecisions.Windows.Forms

使用 Visual Studio 2019,我创建了一个 Crystal Reports .Net 可执行文件,它在构建它的 PC 上运行良好。 但是,当我将 exe 应用程序复制到另一个系统并尝试运行它时,我收到以下错误消息:

 Message="An error occurred creating the form. See Exception.InnerException for details. The 
 error is: Could not load file or assembly 'CrystalDecisions.Windows.Forms, 
  Version=13.0.4000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its 
  dependencies. The system cannot find the file specified."

您可能忘记使用他们的 msi 文件安装 SAP Crystal Reports Runtime for .NET Framework。 或者,您可能使用 64 位版本安装,而您的应用程序是 32 位,反之亦然。

确保使用您在 Visual Studio 中使用的相同 Crystal 运行时引擎部署您的 .Net EXE。

Version=13.0.4000.0

该版本会根据您使用/部署的 Crystal 运行时引擎的版本而更改。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM