The VS Web Server can also be run without Visual Studio actually running optionally.
Once set you can simply open the project in Visual Studio and press Run to execute the Web application (or View In Browser on the Default.htm page) or press Ctrl-F5 to start the Visual Studio Web server on your Web project. You will likely get a compilation error due to the fact that you have Visual FoxPro code in your markup pages which won't compile - ignore the error and set the checkbox to to not show the dialog next time.
From thereon in everything should just work. Note if you Run the Web application you will get many errors potentially - because these projects aren't really ASP.NET code this is normal and you should simply ignore the errors and choose Yes to run anyway to start the site.
The server stays running in the task tray until you explicitly shut it down or close Visual Studio. You can see the port number when hovering over it or clicking on the icon which brings up a small configuration form.
Please note that Web Connection's Show in Web Browser will not work unless you modify the AppSettings key in web.config:
<appSettings> <add key="FoxProjectBasePath" value="c:\wwapps\wc3\"/> <add key="WebProjectBasePath" value="c:\westwind\wconnect\webcontrols\"/> <add key="WebProjectVirtual" value="http://localhost:63841/wconnect/webcontrols/"/> <add key="WebBrowser" value=""/> </appSettings>
But keep in mind that you'll have to change the port each time you restart the VS Web Server. This will be addressed in Visual Studio 2008 which includes an option to set a fixed port for the Web server.
DO CONSOLE with "LAUNCHCASSINI","c:\websites\webdemo","81","/WebDemo"
or if you want to manually set these settings:
DO CONSOLE with "LAUNCHCASSINI"
which brings up the server form:

You can click on the link to bring up a browser at this location. You can minimize the appication to the task tray so the Web Server window stays out of your way.
A Url to the server will be:
http://localhost:81/WebDemo/Default.htm
and you should specify whatever path you choose in your web.config configuration for the WebProjectVirtual:
< add key="WebProjectVirtual" value="http://localhost:81/wconnect/webcontrols/"/>
I recommend you create a small PRG file - maybe called LaunchWebServer.prg - and add:
DO CONSOLE with "LAUNCHCASSINI","c:\websites\webdemo","81","/WebDemo"
to start your server quickly and easily.
Configure the Start Page
The settings in the figure above should be the default except for the default.htm homepage but you can specify any page that you like. The start page can be invoked if you run the site or press Ctlr-F5.
Configure web.config to use the Managed Module
Finally we need to tell the VS Web Server that we want our application extensions to be mapped to the Web Connection module. Add the following to web.config in the project:
<?xml version="1.0"?> <configuration> <configSections> <system.web> <compilation defaultLanguage="C#" debug="false"> <buildProviders> <add extension=".wcsx" type="System.Web.Compilation.PageBuildProvider"/> <add extension=".wcsctl" type="System.Web.Compilation.PageBuildProvider"/> </buildProviders> </compilation> <httpHandlers> <add path="*.wcsx" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule"/> <add path="*.tt" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule"/> <add path="*.wc" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule"/> <add path="*.wwsoap" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule"/> </httpHandlers> </system.web> </configuration>
Both the build providers and the HttpHandlers are required to make this work. Add any script maps you might require in the httpHandlers section. Note that using either Cassini or the Visual Studio Server requires no further configuration as the server runs ALL content through its ASP.NET pipeline. So unlike IIS configuration which requires addition script mapping for ASP.NET the above is all that's needed.
To work around this make sure you set the AdminAccount key in web.config to blank ("") so no authentication is applied.