2012-10-23 5 views
2

J'ai un programme qui fonctionne correctement sur x86. il fonctionne aussi sur des systèmes avec Visual Studio sans erreur, même sur x64. mais sur les systèmes x64 sans studio visuel, se produire une erreur lorsque les rapports d'appel. un message exception:Crystal Report Initialiser sur x64

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. 
Source: 
CrystalDecisions.CrystalReports.Engine 
Stack Trace: 
    at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() 
    at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor() 

et le message contenant cette decription:

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. 

mon programme est basé sur:

  • NET Framework 4
  • visual studio 2012
  • rapport de cristal 13.0.2

et d'installer parfois CRRuntime_64bit_13_0_2.

Quelqu'un peut-il m'aider?

Répondre

1

Une solution possible

Allez à votre projet d'application, clic droit, et sélectionnez « Propriétés »

Dans l'onglet Générer, trouver la zone de liste déroulante cible de la plate-forme. Il dit probablement "n'importe quel CPU".

Changez cela en x86 et votre projet ne compilera que pour 32 bits, éliminant ainsi le problème.