Cannot create activex component

I have actually a website buit, that uses Acrobat Pro 8to open PDF. Workd great on my develope computer. Running VS 2005/ Butonce It goes up on the IIS server, and Iattempt to open up a .pdf, I obtain the error. I havr tried tt register the DLL with regsvr32. But I keep getting an error that states error registering. I"m not 100% percent what file I"m mean to be grabing. I have actually 3 dll"s that I brougt into VS. I try to register those, it fails. Tbelow are so many kind of difffrent places, I"m not acertain what file I need, or what it wants?

Any thoughts?



Prashant Kum...

You watching: Cannot create activex component


8561 Points

2044 Posts

Re: "Cannot produce ActiveX Component"

Jun 17, 2007 12:58 AM|Prashant Kumar|LINK
Are you opening the PDF doc on the server or the client? Which DLL did you register on the server? Which DLLs have actually you lugged right into VS?

Blog post even more details.

In situation you are utilizing the objects of Acrobat Pro 8 for opening the PDF doc on the server, you will have to install Acrobat Pro 8 on the server.



3 Points

52 Posts

Re: "Cannot create ActiveX Component"

Jun 17, 2007 10:59 AM||LINK
Hi Prashant!

Of course I can give you even more details. So initially of all, here is my code to open a record in Acrobat 8.

Private Sub StartAcrobatIac()

Dim gPDFPath As String

Dim rc AsBoolean

Dim sStr AsString

Dim sPath AsString

Dim sName AsString

Dim lNum AsInteger

Dim Filename As String

If detailViewFlag Then

Session("Test") = DetailsView1.DataItem(5)

Session("FilePath") = DetailsView1.DataItem(10)

End If

testtext.Text = Session("Test")

PathTest.Text = Session("FilePath")

gPDFPath = PathTest.Text

"difficult coding for a PDF to open, it have the right to be changed when necessary.

"gPDFPath = "C:sandboxMEAP install_overview.pdf"

"Initialize Acrobat by producing App object

gApp = CreateObject("AcroExch.App")

gRect = CreateObject("AcroExch.Rect")

" show Acrobat









gApp.ToolButtonRemove("AcroForm:WidgetTool")gApp.SetActiveTool("Pencil Tool", 0)


""gApp.MenuItemExecute("Pencil Tool")

" gapp.MenuItemIsEnabled("close")=

"Set AVDoc object

gAvDoc = CreateObject("AcroExch.AVDoc")

"gAvDoc.OpenInWindowEx(gPDFPath, Me.Panel1, 1, 1, 0, 0, 2, 0, 0, 0)

" open up the PDF

If gAvDoc.Open(gPDFPath,"") Then



"Set PDDoc object and get some data

gPdDoc = gAvDoc.GetPDDoc()

lNum = gPdDoc.GetNumPages()

sName = gPdDoc.GetFileName()


End If

End Sub

The .dll I have my soultion are Interop.Acrobat.dll, Interop.AcroPDFLib.dll andInterop.AFORMAUTLib.dll.

See more: Google Toolbar Freezes Internet Explorer, Going To Google Freezes Entire Internet Explorer

So I"m opening the pdf file on client machine. I setup to have Acrobat conventional loaded on, which I was told told is basicly the very same as Acrobat pro. Now I think I will most likely need to have actually Acrobat on the server too, at least the dll regestetred. I try to register the ones over however they all fail. The just one that was succesful was pdfshell.dll. I uncovered this one in c: outine filesAdobeAcrobatActiveX.

The ones I couldn"t acquire to job-related came from the Adobe SDK. So recognize I"m thinking I ihave to out them somewbelow. Couldn"t find anypoint on it is the SDK docs, yet will look more this day. Maybe I should be putting them in the Typical folder?

And lastly, below is the server side error I get as soon as I open up up the web page. Wich by the way, opens up a paper through the page being opened.

Server Error in "/PhaRXMgmt" Application.

Cannot create ActiveX component.

An untackled exemption occurred in the time of the execution of the existing internet repursuit. Please review the stack map for even more information about the error and also where it originated in the code.Exception Details: System.Exception: Cannot create ActiveX component.

See more: Error Code 006-1204 - Fix Gts Error Code 006

Source Error:
An untackled exemption was created in the time of the execution of the existing internet research. Information concerning the origin and place of the exemption deserve to be figured out using the exception stack trace below.
Stack Trace:

Microsoft.VisualBasic.Interactivity.CreateObject(String ProgId, String ServerName) +200 Details.StartAcrobatIac() +429 Details.DetailsView1_Load(Object sender, EventArgs e) +7 System.Internet.UI.Control.OnLoad(EventArgs e) +99 System.Net.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +46 System.Internet.UI.Control.LoadRecursive() +47 System.Web.UI.Control.LoadRecursive() +131 System.Net.UI.Control.LoadRecursive() +131 System.Internet.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

Version Information:
Microsoft .NET Framejob-related Version:2.0.50727.42; Version:2.0.50727.210