Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX access denegaded...

Status
Not open for further replies.

nines

Programmer
Mar 10, 2001
7
0
0
ES
I want count PDF file's pages, I have an Active X witch run ok in VB but in my ASP there are a permis'problem.

I have Adove in my server(full version)
here is the ActiveX code...
...
Dim Exch As Acrobat.CAcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim PDPageView As Acrobat.CAcroAVPageView
Dim PDPage As Acrobat.CAcroPDPage

'here don't run
Set Exch = CreateObject("AcroExch.App")
Set AVDoc = CreateObject("AcroExch.AVDoc")
Set PDDoc = CreateObject("AcroExch.PDDoc")
...
why i can`t create this objects???
 
Code:
Set Exch = server.CreateObject("AcroExch.App")
Set AVDoc = server.CreateObject("AcroExch.AVDoc")
Set PDDoc = server.CreateObject("AcroExch.PDDoc")

You just forgot the server keyword...

hope it helps!:)
Paul Prewett
 
ok, Thanks but that code is in ActiveX,
the asp code is...

...
Set Obj = Server.CreateObject("ContarPDF.PaginasPDF")
Obj.NombreArchivo = ruta
...

and tell me: "access denegaded"
 
Oh, I see. |-I

Have you checked the permissions on the directory that you are trying to create the objects in??

Make sure that your script has the permission to create the object... I'm not sure what denegated means... (denied, possibly??)

That would be my best guess.
 
I think I know exactly what is happening, but have no idea why. I had the same problem and searched everywhere (including this forum) for a solution with no luck at all.

I tried re-installing IIS, reinstalling Win2K, nothing helped.

The only way I ended up fixing it was a reformat...sorry.

Steve Davis
hey.you@hahaha.com.au
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top