Crystal Reports / IIS - Runtime Error

雨燕双飞 提交于 2019-12-23 12:45:18

问题


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?


回答1:


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




回答2:


I think that if you install this runtime its gonna work it worked for us on our server

Crystal reports 64bits runtime



来源:https://stackoverflow.com/questions/7334662/crystal-reports-iis-runtime-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!