Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to DOWNLOAD a CSV file from a FTP server
Message
De
23/09/2016 06:46:08
 
 
À
22/09/2016 10:55:57
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01641214
Message ID:
01641247
Vues:
36
>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

What is CreateFtpWebRequest ? AFAIK that's not part of the .NET framework.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform