Windows 7上的Crystal Reports Runtime for VS引发错误

|| 在我的开发计算机或Windows XP测试计算机上,它似乎运行良好,但是在Windows 7测试计算机上却遇到了问题。 之后,我得到一个正常的崩溃错误:
************** 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 ---
他们的网站当然是寻找任何东西的噩梦... 注意:它是Windows 7 64位,但是我已经在32位模式下运行该程序。 更新: 因此,我发现Crystal报表存在一个问题,即x64版本没有任何初始化程序,因此尝试在程序中进行初始化会导致错误。 我已验证如果卸载x64版本并安装x86 32位版本,则该程序可以正常运行。我已经读到有些人仅以32位模式运行该程序就成功了,但是由于某种原因对我不起作用。 我将问题悬而未决,希望有人能找到如何初始化64位版本的方法,因为那是从单击一次设置中自动安装的内容。     
已邀请:
        如果程序也在x64模式下运行,则适用于Visual Studio 2010 13.0.1版(x64)的Crystal Reports的最新版本将起作用。这意味着可以将VS设置为针对任何CPU进行编译。 http://www.sdn.sap.com/irj/boc/support?rid=/webcontent/uuid/d01fdad8-44e5-2d10-61ad-9d2d4158f3a8     
        首先将项目的平台目标更改为x86,然后再次编译并在Windows 7 64位PC(C:\\ Program Files \\ Microsoft Visual Studio 8 \\ SDK \\ v2.0 \\ BootStrapper \\包\\ CrystalReports \\ CRRedist2005_x86.msi),然后尝试打开您的报告。     
        我们通过将应用程序池高级设置“启用32位应用程序”设置为true来解决此问题。     
        如果您运行的是64位台式机/服务器并且没有64位运行时,也会发生此错误。您需要知道要安装哪个版本的运行时。一如既往,google是搜索运行时位置的最佳朋友     

要回复问题请先登录注册