Home All Groups Group Topic Archive Search About

Cannot create ActiveX object (on Windows 2000)

Author
23 Aug 2006 9:13 PM
Verakso
I have made a small interop function that uses Acrobat Distiller.

It works smothly on all the XP machines, but when I try to run it on a
Windows 2000,I get this error:

System.Exception: Cannot create ActiveX component.
   at Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String
ServerName)
   at MediaBuilder.Utils.PDFCreator.PDFCreator.Main(String[] args) in C:
\Visual Studio Projects\Utilities\PDFCreator\Main.cs:line 31

And line 31 looks like this:

objDist = (ACRODISTXLib.PdfDistiller)
Microsoft.VisualBasic.Interaction.CreateObject
("PdfDistiller.PdfDistiller","");

What is the difference between running this under XP and 2000?

The odd thing is, that I can compile it with out errors on the 2000, it is
just when I run it, I get this error.

Could it be because of the call/use of
Microsoft.VisualBasic.Interaction.CreateObject, that should work W2KSP4.

I have also tried DCOM configuration
(http://support.microsoft.com/kb/q183607), but even with even with this, I
still get the error.

AddThis Social Bookmark Button