>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