I was using .NET 1.1 framework and am currently migrating a web application to .NET 3.5 framework using Visual Studio .NET 2008.
I get the Crystal Report Runtime from Visual Studio .NET 2008 installation.
I use Crystal Report for PDF generation within the application.
In my application project, I reference dll of Crystal and set "copy local" to true. It works well on my machine.
But when I install the application on Server (Windows Server 2008, IIS7), I get the following error:
An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
If you encounter the above error, maybe the following solution could help.
- Check if Crystal Report Runtime is installed on server.
(If folder C:\Program Files\Common Files\Business Objects\ [version]\managed exists).
Otherwise install Crystal Report Runtime.
You can download Crystal Report Runtime from the following links:
"CRRedist2008_x86.msi" (for 32bit)
http://resources.businessobjects.com/support/downloads/redistributables/vs_2008/redist/x86/CRRedist2008_x86.msi
"CRRedist2008_x64.msi" (for 64bit)http://resources.businessobjects.com/support/downloads/redistributables/vs_2008/redist/x64/CRRedist2008_x64.msi
- Check if Crystal is running on 32 bit server or 64 bit server. Go to your application project (in Visual Studio .NET), right click, and select "Properties".On the Build tab, find the Platform Target combo box. If Crystal runs on 32 bit server, change the Platform Target to x86 instead of Any CPU.