Symptom
- ReportDocument object throws an error while compiling
- Error: “The type initializer for ‘CrystalDecisions.Reprots.Engine.ReportDocument’ threw an exception.”
Environment
- Crystal Reports XI R2 SP6
- Visual Studio 2005
- Web Application
Cause
The assembly version of CrystalDecisions.Shared in web.config was different than mentioned in GAC (C:\Windows\assembly).
Resolution
Ensure that the latest references are added in project & assembly version of every dll added to project is same as mentioned in GAC.
Keywords
CR XI R2, .NET SDK , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem
Product
SAP Crystal Reports XI R2