G
Guest
I am running the following code (using VS 2005) with the appropriate
username and password and the request always timeouts:
FtpWebRequest request =
(FtpWebRequest)WebRequest.Create("ftp://integration300:20/");
request.Method = WebRequestMethods.Ftp.ListDirectory;
request.UsePassive = false;
request.Credentials = new
NetworkCredential(<user>,<password>);
request.Proxy = null;
FtpWebResponse response =
(FtpWebResponse)request.GetResponse();
response.Close();
If I perform the query "ftp://integration300" in IE then I can see all the
available drives as expected. I can also access the drives by calling "ftp
integration300" at a command prompt and typing in the user name and password.
Does anyone know why the query may be timing out?
username and password and the request always timeouts:
FtpWebRequest request =
(FtpWebRequest)WebRequest.Create("ftp://integration300:20/");
request.Method = WebRequestMethods.Ftp.ListDirectory;
request.UsePassive = false;
request.Credentials = new
NetworkCredential(<user>,<password>);
request.Proxy = null;
FtpWebResponse response =
(FtpWebResponse)request.GetResponse();
response.Close();
If I perform the query "ftp://integration300" in IE then I can see all the
available drives as expected. I can also access the drives by calling "ftp
integration300" at a command prompt and typing in the user name and password.
Does anyone know why the query may be timing out?