解决Crystal Report XI R2不能在64操作系统正常工作的问题-web程序

原文:[原创]解决Crystal
Report XI R2不能在64操作系统正常工作的问题-web程序

我更换了新的电脑,操作系统也从原来32位的windows 2003 R2升级到windows 2008 R2 x64,
由于客户的原因我们的报表部分必须用Crystal Report XI
R2来完成,报表在原来的计算机上运行一直没有问题,但是在新的计算机上一直不能正工作,错误如下:

The type initializer for
‘CrystalDecisions.CrystalReports.Engine.ReportDocument‘ threw an exception.

Stack Trace:

at
CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()

at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()

Inner Exception:

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.

在我确定我安装了CRRedist2008_x64.msi和CRRedist2008_x86.msi 两个包后问题依旧如此,
其实问题根本就不是CRRedist2008_x64.msi和CRRedist2008_x86.msi 安装与否的问题, 后来我想到了Application
Pools,问题果然出在这里, 以我的环境为例解决办法如下:

1. 打开IIS并选择你的Web程序所使用的application pool, 并点击右侧Actions栏中的Advanced Settings

2. 在打开的窗口中设置Enabled 32-Bit Applications为True,

只需要设置这一个属性就可以了,再次运行程序并打开报表,报表可以正常工作了。

另外:

  1. Crystal Report XI R2不能运行在64位作系统下

  2. 这种方式是错误的: 在VS2005/2008 中,鼠标右键点击引用Crystal Report XI R2的项目并选择Properties,
    在打开的属性窗口选择Build标签,将Platform
    target设置为x86,再次运行程序时会报错。在64位操作系统中编译x86平台的能运行的程序必要设置Application Pool的Enable
    32-Bit Applications

时间: 2024-08-29 15:15:32

解决Crystal Report XI R2不能在64操作系统正常工作的问题-web程序的相关文章

解决crystal report水晶报表在浏览器提示bobj未定义的错误

网上的中文文章(比如这篇文章)都是写的部署到服务器后出现的问题,同时也指出要把crystal report的aspnet_client文件夹拷贝到对应项目的根目录里,这样就可以正常显示了,但是具体到我本人的情况,还是无法只通过拷贝aspnet_client这个文件夹就可以解决问题.所以在中文搜索无果的情况下,通过英文搜索关键字 bobj is undefined后,最终解决问题.这里列出参考链接,stackoverflow中这个问题给出了原因解释,这篇文章给出了修改web.config文件解决方

c# 中crystal report输出PDF文件

工程中引入以下crystal report的类库crystaldecisions.crystalreports.enginecrystaldecisions.reportsourcecrystaldecisions.sharedcrystaldecisions.web 将CrystalReportViewer控件添加入页面.同时为他的初始化添加代码System.Data.DataTable dt = ....;//这里写得到数据表的方法.可以根据自己的爱好写方法,但是一定要得到DataTable

水晶报表 Crystal Report 调用存储过程时出错 找不到表 ,解决方法。

用 CrystalReportViewer1 控件在asp.net的网页上显示报表,如果做报表时调用数据表数据的方式调用是可以成功的,但报表是用存储过程获取数据方式会出现以下错误: 找不到表'RptOpenCheck;1' . 文件 G:\TEMP\FO-OpenCheck {6D191F06-DECF-4A25-88FC-8553E3D435AA}.rpt 内出错: 找不到表. Error: 未将对象引用设置到对象的实例. The table 'RptOpenCheck;1' could no

Crystal Report在.net中的两种显示方式

原文:Crystal Report在.net中的两种显示方式 编写人:CC阿爸 2014-7-29 近来在完成深圳一公司的项目,对方对各方面要求相当严格,一不满意就拒绝签收,为了对修正水晶报表显示及导出的一些小问题,无赖之下,仔细了解一下水晶报表的操作方法,逼苦我们这些苦逼的程序,虽说在以前的项目中,也常使用crystal report 来制作报表.并且针对web与winform 都各有不同的地方. 但总的来讲:显示水晶报表目前使用控件对象的有两种显示方式 1.      使用crystalRe

Crystal Report 遇到需要登录的问题

解决方式: The advices for crystal report database connection settings: 1, Using ApplyLogOnInfo method instead of SetDatabaseLogon method. The code example as below: 2, Using “Microsoft OLE DB Provider for SQL Server” instead of “SQL Native Client” as dat

修改水晶报表(Crystal Report 2008)中子报表的宽度

前几天应公司要求在原有的水晶报表(Crystal Report 2008)模板的子报表中添加新列,可是在修改过程中发现因为之前添加子报表时设置的宽度较小(15cm),现在没有位置可以加入新的列(不能减少其他列的宽度),所以需要增加子报表的宽度,但在主报表中调整了子报表的宽度后不起作用.网上搜索了一下,并没有明确的答案,不过有设置主报表宽度的解决方法,即在页面设置中调整水平值(宽度值),根据这个解决方法,我在子报表的页面设置中调整了水平值,成功解决该问题. 该问题的解决方法很简单,但因为一直以为页

Crystal Report Error: Either the Crystal Reports registy key permission are insufficient or the Crystal Reports runtime is not installed correctly

在64位 Windows 7中水晶报表的错误: Crystal Report Error: Either the Crystal Reports registy key permission are insufficient or the Crystal Reports runtime is not installed correctly Solution: Crystal Reports does not initialize with x64 configuration. Changed t

Visual Studio 2017 集成Crystal Report为ASP.NET MVC呈现报表

原文:Visual Studio 2017 集成Crystal Report为ASP.NET MVC呈现报表 最近项目需要实现报表功能,平衡各方面的因素,还是使用Crystal Report(水晶报表) To get there click here: Download WIKI https://www.crystalreports.com/crystal-reports-visual-studio/ https://www.crystalreports.com/crvs/confirm/ 下载

Crystal Report 在 VS 2010 中的使用和发布

原文:Crystal Report 在 VS 2010 中的使用和发布 使用: 打开CrystalReport官网下载页 目前最新版本为13.0.4 选择“SAP Crystal Reports, version for Visual Studio 2010 - Standard”下载安装,会自动在你VS2010的工具栏产生新的一个“报表设计”的选项卡,改选项卡会添加三个控件:CrystalReportViewer, CrystalReportPartsViewer,CrystalReportS