OLE Registration success, but not able to instantiate GUID?

177 Views Asked by At

I have compiled a dll let say "foo.dll" with VS2010 Premium, at the Developer level the dll works perfectly with Navision 2009 R2 (it connects with a third party dll which connects to the com port to read data).

at the production level, the registration is made by following commands:

   SET GACUTIL="gacutil.exe"
   SET REGASM="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\regasm.exe"
   %REGASM% CodeBarReader.dll /tlb:CodeBarReader.tlb
   %GACUTIL% /i CodeBarReader.dll

P.S: the gacutil.exe is copied to the local directory with gacutlrc.dll (this workaround is the solution for registering .net dlls)

After registering the dll successfully, and launching the Navision to read data the following error is detected:

Impossible to create an instance for OLE control OR Automation server identified with :
GUID={BEB37D92-3040-48A0-8CEA-4F97FAADE6EF}1.0{B5F7CE98-466E-3EB0-A88D-B7FEA3F76D7B}:'CodebarReader'unknown Class
Verifiy that OLE Control OR Automation Server are correctly installed and registered.

It seems that the method for registering the component is incorrect

Help is appreciated...

0

There are 0 best solutions below