Cannot upload a file to ftp
<p>I want to upload a file using upload control. When I select any file and try to upload, an error message shows: <em>Could not find file 'C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\image.jpg'</em>. </p>

<p>The code is below here:</p>

<pre><code>string fileName = Path.GetFullPath(uploadfile.FileName); 
//Path.GetFullPath(uploadfile.FileName);
FtpWebRequest requestFTPUploader 
  = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://server/" + fileName));
requestFTPUploader.Method = WebRequestMethods.Ftp.UploadFile;
FileInfo fileInfo = new FileInfo(fileName);
FileStream fileStream = fileInfo.OpenRead();
int bufferLength = 2048;
byte[] buffer = new byte[bufferLength];
Stream uploadStream = requestFTPUploader.GetRequestStream();

int contentLength = fileStream.Read(buffer, 0, bufferLength);
while (contentLength != 0)
{
    uploadStream.Write(buffer, 0, contentLength);
    contentLength = fileStream.Read(buffer, 0, bufferLength);
}

uploadStream.Close();
fileStream.Close();
</code></pre>
