This routine is useful when you want to download a file that is otherwise processed by IIS. void DownloadFile( string virtualPath) { // retrieve the physical path of the file to download, and create // a FileInfo object to read its properties string filePath