Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/algorithm/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Crystal reports x64上的crystal报告初始化_Crystal Reports_64 Bit - Fatal编程技术网

Crystal reports x64上的crystal报告初始化

Crystal reports x64上的crystal报告初始化,crystal-reports,64-bit,Crystal Reports,64 Bit,我有一个在x86上正常工作的程序。此外,它可以在使用visual studio的系统上工作,即使在x64上也不会出错。但在没有visual studio的x64系统上,调用报告时会发生错误。消息异常为: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. Source: CrystalDecisions.CrystalReports.Engine

我有一个在x86上正常工作的程序。此外,它可以在使用visual studio的系统上工作,即使在x64上也不会出错。但在没有visual studio的x64系统上,调用报告时会发生错误。消息异常为:

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.
Source:
CrystalDecisions.CrystalReports.Engine
Stack Trace:
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
   at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
以及包含此说明的消息:

An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.
我的计划基于:

  • .net框架4
  • visual studio 2012
  • 水晶报告13.0.2
有时安装CRRuntime\u 64位\u 13\u 0\u 2

有人能帮我吗?

一个可能的解决方案

转到应用程序项目,右键单击,然后选择“属性”

在Build选项卡上,找到平台目标组合框。它可能会说,“任何CPU”

将此更改为x86,您的项目将仅编译32位,从而消除此问题