Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use VFP automation servers and ASP
Message
From
05/07/1998 00:03:34
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00113875
Message ID:
00114308
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform