Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use VFP automation servers and ASP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00113875
Message ID:
00114308
Vues:
18
try running dcomcnfg and verify that the IIS user has launch and access rights to the VFP OLE server

Arnon

>
I have been trying to instatiate a simple automation server on IIS 4.0. Calling the ASP causes IIS to hang up. Eventually, an operation time out error occurs on the browser. The only way to have IIS work properly again is to reboot the server. I have included the ASP and FoxPro OLE class below. Does anyone have any clues to help me? I can get a simple Visual Basic ActiveX DLL to work in the browser. The code I am using for the FoxPro OLE class comes from Microsoft knowledgebase article Q168053.
>
>Thanks in advance!
>
>*** Here is VFP.asp ***
>
><% @LANGUAGE="VBSCRIPT" %>
>
>
>Test Page
>
>
>

FoxPro CreateObject


><%
> Dim oVFP
> Set oVFP = Server.CreateObject("AppSrv.WristWatch")
>%>
>Date: <% = oVFP.GetDate() %>

>Time: <% = oVFP.GetTime() %>
>
>*** Here is OLE class in AppSrv.pjx: ***
>
>DEFINE CLASS WristWatch AS Custom OLEPUBLIC
>
>PROCEDURE GetTime()
>RETURN Time()
>ENDPROC
>
>PROCEDURE GetDate()
>RETURN Date()
>ENDPROC
>
>ENDDEFINE
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform