Questions tagged [fluentftp]

For questions about the FluentFTP library for .NET.

GitHub repo: https://github.com/robinrodricks/FluentFTP

62 questions
2
votes
1 answer

"The handshake failed due to an unexpected packet format" FluentFTP error when connecting to SFTP server

I am trying to connect to SFTP server to download some files. The code is written in C# and I am using FluentFTP to connect to the FTP. Client has given port as 22. But when I try the following code, I am getting the error The handshake failed…
Bavya
  • 143
  • 1
  • 3
  • 13
2
votes
1 answer

Getting all FTP directory/file listings recursively in one call

I'm creating a backup program that backs data up to FTP. To archive effectively, I need to do several file attribute comparisons. Right now, I am using FluentFTP and calling FtpClient.FileExists FtpClient.GetFileSize, and FtpClient.GetModifiedTime…
oscilatingcretin
  • 10,457
  • 39
  • 119
  • 206
2
votes
1 answer

FluentFTP: The remote certificate is invalid according to the validation procedure

When I try to connect to my FTP server to upload a file with FluentFTP I get this: The remote certificate is invalid according to the validation procedure. Yet FileZilla works fine with no error or warnings. Am I doing something wrong and if it's…
LorneCash
  • 1,446
  • 2
  • 16
  • 30
2
votes
1 answer

How to list a folder using FluentFTP

I am implementing FluentFTP in my application but I cannot list the contents of a folder on the FTP server. When I use an ftp application like FileZilla I can clearly see that in my user directory there are 2 folders : The Out folder contains…
GuidoG
  • 11,359
  • 6
  • 44
  • 79
1
vote
1 answer

FluentFTP connection broke but no exception

I use FluentFTP in my code to transfer data internally to a FTP server. If the connection to the FTP server breaks down during the upload, then there is no exception. But oddly enough, that doesn't happen with all dates! If I take a *.7z file, there…
newby567
  • 43
  • 5
1
vote
1 answer

Get an FTP folder size using FluentFTP

I want to list out all the folder names and sizes in / path In my case I have two folders in `/ path XYZ (12MB) ABC (10MB) I want to get names and sizes using FluentFTP to achieve it with blazor. I am using BabyFTP as a test FTP server. what I…
manish
  • 31
  • 3
1
vote
2 answers

FluentFTP: Authentication failed because the remote party has closed the transport stream

I am using a C# console app to repro the issue. It's a .NET Framework 4.7 app. The FluentFTP version is 24.0.0, installed as a Nuget package. This is my code: using FluentFTP; using System; using System.Collections.Generic; using System.Linq; using…
lukin155
  • 63
  • 8
1
vote
0 answers

FluentFTP error 421 Could not create socket... when trying Parallel Uploads

I am using latest FluentFTP and I am trying to implement a Parallel Upload function. The issue is that some connections throw exception with message "Could not create socket" and I don't see any specific pattern on the files that are…
nikolasd
  • 318
  • 2
  • 13
1
vote
1 answer

Cannot login in with Fluent FTP (Error 530 – Not Logged In), but GUI FTP client works

This block of code is intended to open a connection between local machine and an FTP server. The server is hosted by DreamHost and I don't know if the issue is in my configuration for the target DreamHost's server. The code throws WebException: 530…
Tridib Roy Arjo
  • 26
  • 2
  • 10
1
vote
1 answer

Is there a way to bind local IPEndPoint to FtpClient object in FluentFTP library?

So far I have tried this FtpWebRequest request = (FtpWebRequest)WebRequest.Create(url); request.ServicePoint.BindIPEndPointDelegate = delegate { IPAddress ip = IPAddress.Parse("127.0.0.1"); return new IPEndPoint(ip, 0); }; request.Method =…
shashank99
  • 21
  • 3
1
vote
1 answer

FluentFtp Azure ftp user cannot log in after few successful connections

I am having some issues when trying to hit ftp many times. For example we have hundred files in ftp and I try to download one with each request/endpoint hit. After random connections number, log shows that for some time we no longer can log in to…
Kamil C
  • 178
  • 1
  • 9
1
vote
1 answer

Preserve Last modified date when uploading file using FluentFtp

I have seen similar questions in the past but not directly related to FluentFtp NuGet package. How can I keep the last modified date from the sender to the receiver when I am uploading a single file? Looks like the default is not to preserve it, is…
Yossi Sternlicht
  • 740
  • 1
  • 6
  • 17
1
vote
3 answers

Download multiple files simultaneously from FTP using FluentFTP

I'm using FluentFTP for connecting, downloading, etc. from FTP https://github.com/robinrodricks/FluentFTP/wiki I would like to download files simultaneously from List. There is no problem downloading them one by one. This is how my code looks…
Johny Wave
  • 111
  • 2
  • 11
1
vote
1 answer

fluentftp upload directory skip subfolders

I use the fluentftp library to upload a folder to ftp. How i can skip the subfolders of the directory. // upload only PDF files var rules = new List{ new FtpFileExtensionRule(true, new List{…
Peter
  • 37
  • 6
1
vote
0 answers

Why would I not be getting a response back from the FTP server?

A while I back, I created an app which utilized FluentFTP to list and download files from an FTP server. Within the past month, the app started timing out whenever performing any FTP action using the library. I examined the logs generated by…
greenjaed
  • 589
  • 8
  • 20