Compiling your Server
In order to deploy your server the first step will be compilation.
If you created your application with the New Project Wizard you can simply do:
This will compile the server and register it for interactive use locally. Alternately you can just compile your EXE file directly:
BUILD EXE <yourProject> FROM <yourProject>
Web Connection servers are EXE COM servers by default and as such need to write COM registration information into the registry under the Local Machine key which requires Admin rights. To compile make sure you run
vfp9.exeusing 'Run As Administrator'.
Alternately, if you are planning of running Web Connection in File Mode only or you need to run in non-admin mode you can temporarily comment out the
<yourProject>Serverclass. For example:
DEFINE CLASS <yourProject>Server AS WWC_SERVER && OLEPUBLIC
Once compiled your server can now be run from Explorer by double clicking on the compiled EXE.
When you launch your EXE server it might be nice to disable the desktop window which you can do with the
It can also be accessed as a COM object. To quickly test COM operation try this from the Command window:
oServer = CREATEOBJECT("<yourProject>.<yourProject>Server") ? oServer.ProcessHit("query_string=wwMaint~FastHit")
The first line should bring up your server as a window. The second line will simulate a request in the server and should return an HTTP response string.
See alsoDeploying an application on a live Web server | Server Configuration Wizard
Comment or report problem with topic