R
repairman2003
I am getting the following error when trying to call
GetRequestStream(): System.Net.WebException: The requested URI is
invalid for this FTP command..
Code where the exception catches:
...
FtpWebRequest uploadRequest =
(FtpWebRequest)WebRequest.Create(uploadUrl);
uploadRequest.Method =
WebRequestMethods.Ftp.UploadFile;
// UploadFile is not supported through an Http proxy
// so we disable the proxy for this request.
uploadRequest.Proxy = null;
exception------> requestStream = uploadRequest.GetRequestStream();
fileStream = File.Open(fileName, FileMode.Open);
....
On my machine I set up a ftp server through IIS, allowed anonymous
connections and allowed read/write privileges. Anybody can shed some
light on this?
GetRequestStream(): System.Net.WebException: The requested URI is
invalid for this FTP command..
Code where the exception catches:
...
FtpWebRequest uploadRequest =
(FtpWebRequest)WebRequest.Create(uploadUrl);
uploadRequest.Method =
WebRequestMethods.Ftp.UploadFile;
// UploadFile is not supported through an Http proxy
// so we disable the proxy for this request.
uploadRequest.Proxy = null;
exception------> requestStream = uploadRequest.GetRequestStream();
fileStream = File.Open(fileName, FileMode.Open);
....
On my machine I set up a ftp server through IIS, allowed anonymous
connections and allowed read/write privileges. Anybody can shed some
light on this?