Visual-studio – Crystal Reports / IIS – Runtime Error

crystal-reportsiisvisual studio

I have an asp.NET 4.0 Web Application which is Hosted on IIS 7.5 (Windows Server 2008 R2). The server has the following packages installed for Crystal Reports:

SAP Crystal Reports, version for Visual Studio 2010 – Standard
SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit)

I am using Visual Studio 2010 for Publishing, and should have all the necessary .dll files.

I have this 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.*

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: 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.*

What should I do to solve this error?

Best Answer

Likely this error occurs because you've deployed to an x64 machine, and the Crystal binaries are 32-bit only.

There's some suggestion on this MSDN forum post that:

  • Crystal doesn't initialize with a project build for x64.

Suggest converting your project's Platform Target (Any CPU, x86, x64) to x86. Likely this will be it.

Further down there are 2 more suggestions:

  • J Fischer's steps on configuring IIS and your app pool to run 32 bit applications. Specifically the tweak is enable32BitAppOnWin64 and 'Enable 32-Bit Applications to True'

  • 32-bit ODBC

Related Topic