Consultor Eletrônico



Kbase P115914: Error 5893 when calling the CrystalRuntime.Application after installing Crystal Reports Developer
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/1/2008
Status: Verified

FACT(s) (Environment):

Crystal Reports 9
Crystal Reports 10
Crystal Reports 11 (XI)
Windows 2003
Windows XP
Windows 2000

SYMPTOM(s):

Using the Crystal Reports ActiveX Report Designer Component (RDC) to access reports via 4GL

Error 5893 generated at the CREATE statement:

CREATE "CrystalRuntime.Application" chApplication.

The automation server for CrystalRuntime.Application is not registered properly.
Please reinstall this server or try registering it again. (5893)

Crystal Reports Developer edition has been installed on the machine

File CRAXDRT9.DLL / CRAXDRT.DLL is present in its default location

Trying to re-register CRAXDRT9.DLL / CRAXDRT.DLL with REGSVR32 results in an error:

LoadLibrary("C:\Program Files\Common Files\Business Objects\3.0\craxdrt.dll") failed - The specified procedure could not be found

Same code works on another machine with Crystal Reports Developer edition installed

CAUSE:

A file dependency of CRAXDRT9.DLL / CRAXDRT.DLL is missing on the system. In specific cases, it has been known for the Windows File Protection system to prevent the Crystal installation process from overwriting a protected file.

FIX:

Option #1
Temporarily disable the Windows File Protection system and reinstall Crystal Reports.
Refer to Microsoft article 222193 for more information on Windows File Protection system and how to disable it.

Option #2
Download the Dependency Walker utility, load CRAXDRT9.DLL / CRAXDRT.DLL (depending on the version of Crystal Reports used) and check for missing files.