(c) 2002 Visual Studio Magazine 
Fawcette Technical Publications

Issue: October 2002
Section: ASP.NET
Author: Randy Holloway
Filename: vs0210an

These are quick instructions for setting up and running the downloadable code 
and application that is discussed in the article "Host ASP.NET Applications."

System requirements:
  Windows 2000 or Windows XP Professional 
  Internet Information Server running on the local workstation 
  SQL Server running on the local workstation (UserID is sa, no password) 

To show what happens when the network Web service is available:
  Create a directory on your c: drive called "development." 
  Retaining the file paths, copy the contents of the archive into 
  C:\development. At this point, you have these subdirectories:
  C:\development\CheckNetwork
  C:\development\RunTimeHost 
  Put a copy of NWProductList.aspx into your IIS root (usually 
  c:\inetpub\wwwroot). 
  In Internet Information Services Manager, create a virtual directory called 
  CheckNetwork that points to the local directory C:\development\CheckNetwork. 
  This makes the Web service available. 
  Execute C:\development\RunTimeHost\RunTimeHost.exe. (Don't run it from within 
  VS.NET because the file paths won't be correct and you'll get a File Not Found 
  exception.)
  The console application opens the browser to 
  http://localhost/NWProductList.aspx where it displays the product listing as 
  found in the SQL Server database. 

To show what happens when the Web service is not available:
  Using Windows Explorer, navigate to C:\development\RunTimeHost\ and delete the 
  file NWProductList.htm 
  In Internet Information Services Manager, stop the Web service. (This forces 
  the console application to resort to the file system version of 
  NWProductList.aspx.) 
  Execute C:\development\RunTimeHost\RunTimeHost.exe again.
  The console application starts, tries to connect to the Web service and then 
  uses the technique described in the article to open 
  C:\development\RunTimeHost\NWProductList.aspx. The application reads from the 
  local XML file (NWProducts.xml), generates a new version of  
  NWProductList.html and displays it in Internet Explorer. 

Thank you to Ken Cox for creating these instructions.