Problem using AFORMAUTLib in VB.NET on different computer

  • Thread starter Thread starter okaminer
  • Start date Start date
O

okaminer

I writing VB.NET Code using Acrobat 6 API functions and my problem is
with the following code:
_formApp = New AFORMAUTLib.AFormAppClass
_acroForm = _formApp.Fields

The problem is that when I run it on my computer it runs fine. But when
I compile the code and run it on different computer the code fails.

I had similar problem when using Acrobat.CAcroAVDoc (DLL) which was
solved by creating the DLL using the DLL's GUID.
But here the AFORMAUTLib is an API and I am not sure if's it even have
an GUID
Please help I've been sitting on this one for two days now

Thanks,
 
Hi,
From your code, the "AFORMAUTLib" should be the name of one type library
providing type information about COM.
Two possiblities result in your failure:
one is that you didn't register the COM;
another is that security configuration isn't correct when one application
runs on another computer.

Alan
 
Hi alan Thanks for quick response
But,
1) The COM object is registered
2) I don't believe this is a security problem because
I tried to run the compiled code on different computer and it didn't
work then I compiled the code on that other computer and ran it again,
and it did work.
I believe this implements that the refernce is not set properly when
moving between computers
furthermore the security is set to ALL in the machine config

thanks,
 
Back
Top