Visual studio Windows 7上用于VS的Crystal Reports运行时引发错误

Visual studio Windows 7上用于VS的Crystal Reports运行时引发错误,visual-studio,crystal-reports,Visual Studio,Crystal Reports,它似乎在我的开发机器或WindowsXP测试机器上运行良好,但在Windows7测试机器上遇到了问题 之后,我得到一个正常的崩溃错误: ************** Exception Text ************** System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: The type

它似乎在我的开发机器或WindowsXP测试机器上运行良好,但在Windows7测试机器上遇到了问题

之后,我得到一个正常的崩溃错误:

************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See
Exception.InnerException for details.  The error is: The type initializer for
'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> 
System.TypeInitializationException: The type initializer for 
'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> 
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: 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.
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
   --- End of inner exception stack trace ---
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
   at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
   at Processing.LogTag..ctor()
   at Processing.frmPrint.InitializeComponent()
   at Processing.frmPrint..ctor()
   --- End of inner exception stack trace ---
他们的网站当然是一个噩梦找到任何东西

注意:它是64位Windows 7,但我已经在32位模式下运行该程序

更新:

因此,我发现crystal reports存在一个问题,即x64版本没有任何初始值设定项,因此尝试在我的程序中对其进行初始化会导致错误。
我已经验证过,如果我卸载x64版本,并安装x86 32位版本,程序工作正常。我读过一些人在32位模式下成功运行了程序,但无论出于什么原因,这对我都不起作用


我将这个问题留一点时间,希望有人已经找到了如何让它初始化64位版本的方法,因为这是通过单击一次安装程序自动安装的内容。

如果程序也在x64模式下运行,Visual Studio 2010 Crystal Reports 13.0.1(x64)的最新版本将正常工作。这意味着可以将VS设置为针对任何CPU进行编译


首先将项目的平台目标更改为x86,然后重新编译并在windows 7 64位pc中安装此安装程序(C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports\CRRedist2005\u x86.msi)并尝试打开您的报告。

我们通过将“应用程序池高级设置”“启用32位应用程序”设置为true来解决此问题。

如果您运行的是64位桌面/服务器&您没有64位运行时,也可能发生此错误。您需要知道要安装的运行时版本。一如既往,谷歌是搜索运行时位置的最佳朋友

如果我安装64位版本,这是否适用于较旧的PC?如果我没有弄错,如果你安装该版本并在64位计算机上编译,那么它将适用于x86或x64计算机。至少对我来说是这样。您可能需要使用一些构建设置,但它应该可以工作。太棒了!。你拯救了一天,这是一个救命稻草。在VS中创建windows服务时,它似乎喜欢为32位操作系统构建,因此清除“首选31位”复选框就可以了。