Consultor Eletrônico



Kbase P112019: Error 5893 when trying to access .NET DLL which has COM wrapper from 4GL
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/25/2008
Status: Verified

SYMPTOM(s):

The automation server for <X>.<Y> is not registered properly.


Please reinstall this server or try registering it again. (5893)

Using ActiveX Automation from 4GL to call .NET DLLs which have a COM wrapper

FACT(s) (Environment):

OpenEdge 10.x
Windows

CAUSE:

The .NET DLL was written as a class within a class so consequently the English like name of the COM object used in the 4GL CREATE statement was different than the normal <X>.<Y> structure.

FIX:

Use the regasm utility to export the entries that the .NET DLL would write to the registry and look at them. These entries will give the English like name that needs to be used in the CREATE statement.
The format of the regasm command needed to obtain the list of registry entries is as follows:
regasm YourDotNetDllNameGoesHere.dll /regfile:SomeFileNameGoesHere.txt