Wiki Home

Fox Trails

Namespace: VB
I have a new faster internet connection and am hosting again. I don't have an svn repository configured. Looking back at my old web logs, it seems that google was getting stuck in my svn web interface, in a cyclical loop of some sort. It really destroyed my bandwidth. So the site is back up, but any references to svn are now broken links. -- Brian Marquis

The foxtrails files are available here until I can arrange a more permanent home for them.

[2009.09.25] Fox Trails is officially offline. If you want the files, contact me directly. My email address is in my profile. Just got tired of paying for a high speed ComCast connection that ran like a dialup line. -- Brian Marquis

Replaced Urls below with -- Brian Marquis
Hello, sorry for this message.
I wanted to post a question in a commment on, but I didn't get the confirmation email for the registration.
I modified foxtrails so that I can send an archived file with return filetostr(m.lcFile), but I received a file diffent in size than the original.

I called http://localhost/default.aspx/update/download/my_parameter through vfpconnection.fll.
Is there another way I could send a file?
Modify default.aspx to do a BinaryWrite(...) instead. Be sure to set the mime type accordingly. See the car controller in the demo for an example of setting the mime type.

I've purchased and have mirrored the subversion repository to the new site. You can use subversions switch command with the relocate option, or via tortoisesvn's relocate menu option. Full instructions are included on my company web site:

Also note that I will be adding all new content on the foxtrails web site. While I will leave the existing topics on the Fox Wiki, my hope is that these pages will be used by the Foxpro community to discuss Fox Trails and that will be used to supply all official Fox Trails content. -- Brian Marquis

The Foxtrails server is down for maintenance. If you'd like a copy of the framework, drop me an email --

There is a new update available which includes the "Fox Trails Revisited" presentation that I gave at DAFUG. This presentation shows you how to create a basic ecommerce site using Fox Trails.

I've added a number of enhancements to Fox Trails, including:
1. Support for Fox Unit tests, along with tests of several core utilities and samples.
2. Enhancements to numerous helper functions including built-in ssl support.
3. A new emailer utility.
4. Migrate.prg enhanced with support for versioned database schemas. See directory for sample migrations.
5. Genmigrate: A utility to create a migration for the currently open table.

If you need any help, my email address is listed in the tutorial. infomarketr.
Trouble Shooting Fox Trails
Here's how to embed Fox Trails in an existing application: Embedded Fox Trails

This is an excerpt of the full Fox Trails Tutorial
Fox Trails is a new approach to developing web applications with VFP. It is specifically designed to help speed application development time by eliminating tedious steps often associated with using VFP Com servers from ASP.Net. It is modelled after Ruby On Rails, integrating an MVC architecture with VFP.

Fox Trails Design Goals
1. Easy to use framework - no deeply nested object graphs.
2. Simple configuration - use meta data where available to eliminate configuration issues.
3. Easy to deploy - separate application logic from the COM interface layer.
4. Freely available - Fox Trails is public domain software.

Getting Started
Fox Trails may be downloaded from , choose the tarball next to the Fox Trails trunk. Extract the tarball to the location of your choice. For simplicity, we'll assume it's installed in C:\foxtrails.

You may also download Fox Trails using a subversion client from (I like Tortoise SVN , but there are many available).

You'll need a copy of Visual Foxpro 9.0 installed (older versions may work, but are untested).
You'll need to install Internet Information Services on your computer and then the .Net 2.0 framework. Note that if
you install .Net 2.0 before IIS, you'll need to reinstall it after the IIS installation has completed.
Although it's not required, Visual Studio 2005 will be helpful for debugging Fox Trails applications.

1. Open c:\foxtrails\demo.pjx and build a multi-threaded dll (or choose Start/Run, regsvr32 c:/foxtrails/demo.dll ).
2. If you have Visual Studio 2005, double-click the c:\foxtrails\webroot\webroot.sln file.
3. Open the default.aspx file in Visual Studio and press F5.
If you don't have Visual Studio, you'll need to perform the following additional steps:
4. create a virtual directory under IIS and point it to c:\foxtrails\webroot. You can name the virtual directory whatever
you want ( or make WebRoot the site's home directory in IIS). We'll assume a virtual directory named WebRoot.
5. Verify that the ASP.Net user has read access to c:\foxtrails and it's sudirectories.
6. Add modify permissions on the Db subdirectory. ( I usually just set Everyone permissions on development systems).
7. Open a web browser and enter http://localhost/webroot

New FoxShow podcast with a screencast and interview with Brian Marquis .
Sites Using Fox Trails, Fox Trails Tutorial
Contributors: Brian Marquis, Randy Jean
Refactored [2007.12.07] - Brian Marquis
( Topic last updated: 2012.06.22 12:11:14 AM )