Archived discussions are read-only. Learn more about SAP Q&A

'CrystalDecisions.CrystalReports.Engine.ReportDocument missing?

Hello,

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.

Thanks

  • SAP Moderator
  • SAP Employee
replied

You have to install the correct CR runtime;

MSM

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_mergemodules_13_0_1.zip

MSI 32 bit

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip

MSI 64 bit

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip

No other way available.

Ludek

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]

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question