I have an app that uses Crystal Reports. Currently it's on .NET 3.5.
I'm in the process of migrating it to .NET 4.0. I've downloaded "SAP Crystal Reports, version for Visual Studio 2010 - Standard" from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp and installed it on my development machine. I added references to CrystalDecisions.CrystalReports.Engine.dll and CrystalDecisions.Shared.dll to my project. My application works fine on my machine.
I packaged it in an msi and installed it on the server where the .NET 3.5 version was running previously. I checked teh msi appears to install CrystalDecisions.CrystalReports.Engine.dll and CrystalDecisions.Shared.dll to the GAC correctly. However, when I run my app, I see the following error:
Message: System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
Any suggestions? Please don't tell me I'll have to install the entire "SAP Crystal Reports, version for Visual Studio 2010 - Standard" on my server.
Ludek Uher replied
You have to install the correct CR runtime;
MSI 32 bit
MSI 64 bit
No other way available.
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]