dimanche 31 janvier 2010

An error has occurred while attempting to load Crystal Reports runtime


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.

3 commentaires:

  1. merci merci, plusieurs heures que je cherche une solution a ce pb, le fait de forcer l'appli en x86 semble avoir ete salutaire...
    Mais n'y a t'il pas un risque de perte de perf sur un OS 64 bit ??

    arthe

    RépondreSupprimer
  2. Pour OS 64 il faudrait installer le package redistribuable de 64.



    En général cela ne doit pas poser un problème. La seule partie lente
    que j'ai pu rencontrer est sur la méthode ApplyLogOnInfo :
    http://lusiawatisiano.blogspot.com/2010/06/cyrstal-report-applylogoninfo-tres-lent.html

    RépondreSupprimer
  3. Concernant le package 64 je ne l'ai pas trouver pour ma version de crystal 11 release 2 :(
    j'ai installer le SP6 pour ma version de CR, mais pas de changement, en attendant cela fonctionne ainsi, nous verrons qd une version 64 bit de CR 11 release 2 sera sortie

    Merci encore :)

    arthe

    RépondreSupprimer