Installing on your own IIS web server in 10 steps!

1.) IIS 5 (Win2K) or higher is supported.

- Use ActiveVFP 5.6 for Windows VISTA or above
- Use ActiveVFP 5.5(for ASP.NET 2.0) for Windows 2003 Server or below
- Use ActiveVFP 5.5(for ASP.NET 1.1) for GoDaddy (see separate instructions)

2.) Unzip the ActiveVFP 5.6 zip file or the AVFP5.5 (for ASP.NET 2.0) zip file to its own folder or under wwwroot.

3.) If your operating system is Win2K (IIS5) or Windows XP Pro (IIS5.1), you must register activevfp.dll by running the following from Run or the CMD line (you must Run as Administrator):

regsvr32 <your drive\your directory\>activevfp.dll . Do not run this on newer versions of Windows as they support reg-free and don't require this.

Notes: Windows XP Home does not come with IIS. Windows XP Pro will work. Windows Vista Home Basic won't work but Windows Vista Home Premium will.

4.) IIS must be installed. If it's not or you're not sure: From 'Control Panel\Install Programs', choose 'Turn Windows features on or off'. Choose 'Internet Information Services'. Press OK.

5.) ASP.NET and ASP must be enabled from Control Panel\Install Programs\Turn Windows Features on. From Control Panel, Expand Internet Information Services, then World Wide Web Services, then Application Development Features. Select ASP.net and ASP and then click OK.

6.) If you're running a 64-bit version of Windows you must enable 32 bit apps via IIS Manager (Application Pools/DefaultAppPool/Advanced Settings/Set Enable 32-bit applications to True) or issue the following command from Run or the CMD line(you must Run as Administrator):

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
7.) In IIS Manager create an Application (Windows 7, Vista, or above) or Virtual Directory (Windows 2003 Server or below) over the folder by right-clicking Default Web Site and taking the appropriate option. If asked, give Write and Script permissions.
8.) Optionally, apply write privileges in IIS Manager to the Data directory and the Temp directory if you intend to update data.
9.) To test from a web browser: http://localhost/<the virtual directory>/default.aspx (for example, http://localhost/regfreetest/default.aspx) for AVFP version 5.5 or http://localhost/<the virtual directory>/default.avfp for AVFP version 5.6.

10.) To develop a new ActiveVFP web application, just create a file in Notepad or MS Expression saved with an .avfp extension (5.6) or as one of the HTML templates (5.5). For example:

hello world from
<%=version()%>
<%=date()%>

Save as helloworld.avfp (5.6) or Helloworld.htm (5.5) and call from any browser:

http://localhost/demo/helloworld.avfp (5.6)

http://localhost/demo/default.aspx?action=helloworld (5.5)

NOTE: /prg/main.prg is where pre-processing and post processing occurs. It can optionally be used when needed.

. See the demo code.