cannot create ActiveX component

Using OLE Automation API
Post Reply
revox
Posts:7
Joined:Thu Jan 15, 2009 4:17 pm
cannot create ActiveX component

Post by revox » Thu Jul 22, 2010 10:30 pm

We just upgraded to print2flash 3.0.

It works fine on all 32 bit development servers and desktops, however whenever I put it on a 64 bit production server I get the error:

"cannot create ActiveX component"

at line P2F = CreateObject("Print2Flash3.Server")

Even when I manually import the p2fServer.tlb and P2FShellExt.dll into the .Net project it still throws "cannot create ActiveX component" on the 64-bit machine.

The only difference I can see is that the production server is 64-bit. Any help would be greatly appreciated.

Sidenote:
Everything is being run as Administrator, so I do not think it is a permissions issue.

revox
Posts:7
Joined:Thu Jan 15, 2009 4:17 pm

Re: cannot create ActiveX component

Post by revox » Thu Jul 22, 2010 10:42 pm

Heh, I swear I always figure it out the second AFTER I post the question...

In case anyone else runs into the same problem...in the .Net Project Properties->Advanced Compiler Settings you have to set you program to compile specifically for "x86" and NOT "any cpu".

Post Reply