我在Crystal Reports中遇到某种问题。每当我尝试初始化ReportDocument或填充ReportViewer时,都会遇到以下异常:
System.TypeInitializationException:{““ CrystalDecisions.CrystalReports.Engine.ReportDocument”引发了例外。“}
此代码行产生异常:
CrystalDecisions.CrystalReports.Engine.ReportDocument repDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
我重新安装了Crystal Reports,但没有结果。奇怪的是,它在我们周围的每台其他计算机上都能正常工作。
我还能做什么?
以前发生过这种情况,对我来说,解决方案是我无意中卸载了Crystal Reports Runtime。
您具有.net-2.0标记,因此请根据所使用的Visual Studio版本尝试在文件中搜索'CRRedist2008_x86.msi'或CRRedist2005_x86.msi。]
或重新下载:
对我来说,这是由于Crystal Report版本13-0-22运行时引擎的文件已损坏。我为解决该问题所做的是: