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:
00114313
Vues:
23
>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.

Check out http://www.west-wind.com/articles.htm. There's an article on using COM objects with IIS 4.0 and how to handle instantiating and debugging these servers effectively.

Also, a longer version is in the July issue of FoxPro Advisor.

Regards,


>
>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
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform