Crystal Report加载错误 - 显示空引用异常 [英] Crystal Report loading error-shows null references exception

查看:80
本文介绍了Crystal Report加载错误 - 显示空引用异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在wpf开发了一个项目。我使用crystal report报告。我有三个关于我项目的报告。当我第一次打开报告时它将打开然后下次我尝试打开意味着它将显示此错误在SAPBusinessObjects.WPF.ViewerShared.dll中发生类型'System.ArgumentNullException'的第一次机会异常并且错误消息是显示为值不能为null。参数名称:resourceKey?请帮助解决问题吗?。

I have develop a project in wpf.I use crystal Report for reporting.i have three reports on my project. when i open the report first time it will opens then next time i try to open means it will show this error "A first chance exception of type 'System.ArgumentNullException' occurred in SAPBusinessObjects.WPF.ViewerShared.dll" and the ERROR MESSAGE is showed as "Value cannot be null.Parameter name: resourceKey"?. Please any one help to fix the problem?.

推荐答案

简单一点就是你在页面上传递的参数刷新它变为空。页面加载时间或意味着第一次页面打开值是参数第二次当你按下按钮它的后退和值变为null尝试调试参数传递代码
its simple that the parameter you are passing on page refresh it become null .On page load time or means first time the page open value is there in parameter second time when you press button its post back and value become null try to debug the parameter passing code


我已经研究了很多这个问题,后来发现这是SAP Crystal报表的运行时/开发人员版本的问题。可能报告可能在一个版本中创建(例如:13.0.6),现在您可能正在使用更新版本(新的运行时/开发人员版本13.0.12)进行测试。要解决此问题,请从您的计算机中删除所有版本的SAP crystal报告,从程序文件中删除SAP文件夹,重新启动并安装旧版本的CR并进行测试。



谢谢!一切顺利!
I have researched a lot for the issue and later found out that it is the problem with the runtime /developer versions of SAP crystal report. Probably the report might be created in one version (for eg: 13.0.6) and right now you may be testing with a newer version (a new runtime/ developer version 13.0.12). In order to resolve the issue, remove all versions of SAP crystal report from your machine, delete the SAP folder from program files, restart and install the old version of CR and test.

Thank you! All the best!


这篇关于Crystal Report加载错误 - 显示空引用异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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