[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-04-20
5
Medium Priority
?
946 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.
0
Comment
Question by:amazursky
  • 2
  • 2
5 Comments
 
LVL 7

Expert Comment

by:JuanCarniglia
ID: 35432961
Check Event Viewer for error logs, and more info.

Greetings.
0
 

Author Comment

by:amazursky
ID: 35440964
No error in the event log
0
 
LVL 7

Accepted Solution

by:
JuanCarniglia earned 1000 total points
ID: 35445641
Isn't Server (as in Server.CreateObject) missing? Or it is not necessary to use it?

Try...

gApp = Server.CreateObject("AcroExch.App")
0
 

Author Closing Comment

by:amazursky
ID: 35894686
We also changed few other security rights as well so not sure if it worked due to this change or change in security rights.
0
 

Expert Comment

by:rkruzner
ID: 36189621
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.
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question