We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

ActiveX cannot create Object of Acrobat Professional in ASP.NET on a 64 bit Server 2008

amazursky
amazursky asked
on
Medium Priority
1,028 Views
Last Modified: 2013-11-07

I am trying to create an Acrobat Object through ASP.NET application to highlight a string within PDF Document. But we are geting the error "ActiveX cannot create object" while running the following code.
gApp = CreateObject("AcroExch.App")

Adobe Acrobat X Pro is installed on the server machine.

The above error does not happen on every Server Machine. It only happens on those servers that have window server 2008 64 bit installed.

I have also verified the following entries in the registry and all of them exist.
HKEY_CLASSES_ROOT\AcroExch.App
HKEY_CLASSES_ROOT\AcroExch.App.1
HKEY_CLASSES_ROOT\AcroExch.AVDoc
HKEY_CLASSES_ROOT\AcroExch.Document

I have also given Network Service Rights to AcroExch.PDBookmark, AcroExch.Matrix, AcroDistx and AcroBroker through DCOM Config Interface.

Every thing is working fine on Window Server 2003 server but same settings do not work for Window Server 2008 - 64 bit.
Please let me know if i need to change few settings on Window Server 2008 64 bit to create the acrobat object through ASP.NET Application.

I would also like to mention that the above line of code works fine on 64 bit Server if it is a Desktop Application.
Comment
Watch Question

Check Event Viewer for error logs, and more info.

Greetings.

Author

Commented:
No error in the event log
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
We also changed few other security rights as well so not sure if it worked due to this change or change in security rights.

Commented:
So exactly what is the solution to this issue?  I have a DLL written in C++ - CreateDisPatch(Pdf.PdfDistiller) works find on 32bit os, but does not work on Windows Server 2008.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.