Information générale
Catégorie:
COM/DCOM et OLE Automation
Hello everyone,
I have the following problem:
I am following an example about asp and vfp.
It was an online demo given by Mike Helland at the Wiki-ASPandVFP.
Everytime I try to run the aspsample.asp page I get
the following error:
Access is denied to this object aspsample.asp, line 2
Here is the aspsample.asp code:
************************************************************
' create the object
Set oVFPObject = Server.CreateObject("aspsample.AspSample")
If IsObject(oVFPObject) Then
' Call VFP DLL -- let it do the rest of the work
x=oVFPObject.TestCom()
Response.Write(x)
'Release object variable
Set oVFPObject = Nothing
Else
Response.Write("Could not load COM Object")
End if
****************************************************************
Before running the page I copied the aspsample.asp and my aspsample.dll
to the c:\inetpub\wwwroot subdirectory.
I am totally lost here!
Do I have to register the COM dll before I issue
Set oVFPObject = Server.CreateObject("aspsample.AspSample")???.
any help is appreciated.
THanks,
Sergio Ortiz
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement