Author: jreid101 | Posted on: 5/16/2009 7:03:38 AM | Views : 642

 My goal here is to select a local file, by means of a constant local path since it would be the same location on each users computer, or any other means.  And upload it to a ftp directory.  However, with my code it always throws the exception that it cannot find the file specified:
Could not find file 'f:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\myfile.zip'
This is not the file location I am pointing to when I select the browse button using ASP.NET's file upload control.  I'm thinking this is because its not running on IIS?
 
Here is my code.
 
using System;
using System.IO;
using System.Net;
using System.Collections;
using System.Configuration;
using System.Data;
Go to the complete details ...