在Windows实例化的ReportDocument 7计算机崩溃的应用程序 [英] Instantiating ReportDocument on Windows 7 machine crashes app

查看:107
本文介绍了在Windows实例化的ReportDocument 7计算机崩溃的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试实例化一个的ReportDocument我的应用程序崩溃 - 包装在try / catch块时也是如此。这仅发生在Windows 7计算机(它也可能发生在Vista的 - 我还没有测试它那里)。运行XP机器根本不有问题。

When I try to instantiate a ReportDocument my app crashes - even when wrapped in a try/catch block. This only happens on Windows 7 machines (it might also happen on Vista - I haven't tested it there). Machines running XP don't have a problem at all.

try
{
    ReportDocument doc = new ReportDocument(); // This cause the app to crash
}
catch (Exception ex)
{        
    Console.WriteLine(ex.ToString()); // This never executes
}

具体的dll引用是CrystalDecisions.CrystalReports.Engine版本11.5.3700.0

The specific dll reference is CrystalDecisions.CrystalReports.Engine version 11.5.3700.0

任何想法?

推荐答案

我们有这个相同的问题。我们的客户端Windows 7计算机上安装的Crystal Reports XI R2 Service Pack 4的全力打造,并解决了问题。这是我的理解,这个全服务包是一个完整的安装Crystal Reports XI R2的。我读了留言板的CRXIR2 Service Pack 6中是必要的Windows 7的兼容性,但SP4就足够了。

We had this identical problem. We installed Crystal Reports XI R2 Service Pack 4 Full Build on the client Windows 7 machine, and it solved the issue. It is my understanding that this "full" Service Pack is a complete install of Crystal Reports XI R2. I read in a message board that CRXIR2 Service Pack 6 was necessary for Windows 7 compatibility, but SP4 was sufficient.

该服务包可以从SAP网站下载的,但他们可能需要注册登录。该网站是不直观。

The Service Pack can be downloaded from the SAP website, but they may need to register a login. The website is not intuitive.

有趣的是,我们有运行Windows 7的虚拟PC实例,我们无法在虚拟环境中重复的错误。只有当我们建立,我们看到了一个物理Windows 7中的内部错误。

Interestingly, we had a Virtual PC instance of Windows 7 running and we could not repeat the error in the virtual environment. It was only when we built a physical Windows 7 box that we saw the error in-house.

这篇关于在Windows实例化的ReportDocument 7计算机崩溃的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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