Message
From
22/09/2016 11:03:31
 
 
To
22/09/2016 10:55:57
General information
Fórum:
ASP.NET
Category:
Miscellaneous
ID da thread:
01641214
ID da mensagem:
01641215
Views:
39
without going for the docs I would first guess that only the directory is not enough, either add filename or try *.*...

>Hello all.
>I have ftpSourceFilePath = "ftp://SomeDomain.net:21/out/"
>
>When I execute the following 3 lines I get "The request URI is invalid for this FTP command." error
>
>FtpWebRequest request = CreateFtpWebRequest(ftpSourceFilePath, userName, password, true);
> request.Method = WebRequestMethods.Ftp.DownloadFile;
>Stream reader = request.GetResponse().GetResponseStream();
>
>
>Why am I getting this issue?
>Can anyone see the problem?
>
>Thanks in advance
Previous
Responder
Mapa
View