Original: [Original] solve the problem that Crystal Report XI R2 cannot work correctly in the 64 operating system-web Program
I replaced the new computer, the operating system also from the original 32-bit Windows 2003 R2 upgrade to Windows R2 x64, due to customer reasons our report part must be completed with the Crystal Reports XI R2, the report runs on the original computer has no problem , but has been unable to work on the new computer, the error is as follows:
The type initializer for ' CrystalDecisions.CrystalReports.Engine.ReportDocument ' threw an exception.
Stack Trace:
At CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime ()
At CrystalDecisions.CrystalReports.Engine.ReportDocument. Cctor ()
Inner Exception:
An error had occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions be insufficient or the crystal Reports Runtime is not installed Corre ctly.
Please install the appropriate Crystal Reports Redistributable (crredist*.msi) containing the correct version of the Cryst Al Reports Runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
After I'm sure I installed the Crredist2008_x64.msi and Crredist2008_x86.msi two packages, the problem remains the same, but the problem is not Crredist2008_x64.msi and Crredist2008_x86.msi Installation or not problem, and then I thought of application pools, the problem is here, to my environment as an example of the solution is as follows:
1. Open IIS and select the application pool that your Web program uses, and click Advanced Settings in the Actions bar on the right
2. Set enabled 32-bit applications to true in the window that opens.
Just set this property on it, run the program again and open the report, and the report will work correctly.
Other than that:
- Crystal Report XI R2 cannot run on a 64-bit system
- This is an error: in vs2005/2008, right-click on the project referencing Crystal Report XI R2 and select Properti ES, select the Build tab in the Open Properties window, set platform target to x86, and run the program again with an error. The ability to run programs that compile the x86 platform on a 64-bit operating system is necessary to set application pool's enable 32-bit applications