Windows 7上的Crystal Reports Runtime for Windows抛出错误 [英] Crystal Reports Runtime for VS on Windows 7 Throws an Error

查看:407
本文介绍了Windows 7上的Crystal Reports Runtime for Windows抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它似乎在我的开发机器,或Windows XP测试机器,但我遇到问题在Windows 7测试机器上的问题。工作正常。

It seems to be working fine on my development machine, or the Windows XP test machines, but I'm running into problems on the Windows 7 test machines.

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

After that, I get a normal crash error:

************** 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 ---

他们的网站当然是一场噩梦,可以找到任何东西...

Their website is of course a nightmare to find anything...

注意:这是Windows 7 64位,但我已经以32位模式运行程序。

Note: It is Windows 7 64bit, but I'm already running the program in 32bit mode.

更新:

所以我想出,水晶报告有一个问题,其中x64版本没有任何初始化,所以试图在我的程序中初始化它导致一个错误。

我已经验证,如果我卸载x64版本,并安装x86 32bit版本,程序工作正常。我读过一些人已经成功只是运行程序在32位模式,但无论什么原因,对我没有工作。

So I figured out that crystal reports has an issue where the x64 version doesn't have any initializers, and so trying to initialize it in my program is causing an error.
I have verified that if I uninstall the x64 version, and install the x86 32bit version, the program works fine. I've read that some people had sucess just running the program in 32bit mode, but for whatever reason that didn't work for me.

我打开一个问题,希望有人想出了如何让它初始化64位版本,因为这是什么自动安装

I'm leaving the question open for a little bit, in hopes that someone has figured out how to get it to initialize the 64 bit version, because that's what automatically installs from the click once setup.

推荐答案

最新版本的Crystal Reports for Visual Studio 2010版本13.0.1(x64)如果程序也以x64模式运行。这意味着VS可以设置为任何CPU编译。

The newest version of Crystal Reports for Visual Studio 2010 version 13.0.1 (x64) will work if the program is also run in x64 mode. This means that VS can be set to compile for Any CPU.

http://www.sdn.sap.com/irj/boc/support?rid=/webcontent/uuid/d01fdad8-44e5-2d10-61ad-9d2d4158f3a8

这篇关于Windows 7上的Crystal Reports Runtime for Windows抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆