Questions tagged [fluentftp]

For questions about the FluentFTP library for .NET.

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

62 questions
11
votes
1 answer

Download files using FluentFTP

I am trying to implement FTP transfer using FluentFTP in C#. Getting a directory listing is very easy, but I am stuck on downloading files. I found one article that has an example in its comments here but it won't compile because I cannot find where…
GuidoG
  • 11,359
  • 6
  • 44
  • 79
10
votes
2 answers

Connecting to FTPS (FTP over SSL) with FluentFTP

I am using IIS in my local machine for testing FTP with SSL connection. I am using the FluentFTP library for connecting to the FTP. I am using the following code to connect to the Server. FtpClient conn = new FtpClient(); conn.Host =…
6
votes
1 answer

Can connect to FTP using FileZilla or WinSCP, but not with FtpWebRequest or FluentFTP

I am trying to open an FTP connection over SSL in my code. I'm able to connect and list a directory using FileZilla of WinSCP. But when listing the directory through .NET code using FtpWebClient, I get the error (425) Can't open data…
Ben Rubin
  • 6,909
  • 7
  • 35
  • 82
6
votes
2 answers

FluentFTP - Getting error while connecting "Timed out trying to read data from the socket stream!"

Getting Timed out trying to read data from the socket stream! when connecting to FTP using FluentFTP. Below is the source code which I am using to connect: Console.WriteLine("Configuring FTP to Connect to {0}", hostname); ftp = new…
Vijai Maurya
  • 101
  • 1
  • 1
  • 8
4
votes
1 answer

FluentFtp unable to connect but can in filezilla

I am using Fluent Ftp to send a file to the server I am connecting fine using quick connect in filezilla but in my code am getting a time out error. public bool SendFileToFtp(List _files) { //create an FTP client string ftpHost =…
Dave
  • 233
  • 2
  • 12
4
votes
0 answers

FluentFTP throws "System.IO.IOException: Authentication failed" when trying to list files on ftps server

Description When connecting to a FileZilla FTPS server with FluentFTP, we get a System.IO.IOException: Authentication failed because the remote party has closed the transport stream. when trying to list files. We can establish the initial…
adhominem
  • 1,104
  • 9
  • 24
4
votes
2 answers

FTP Connection issue- using FluentFTP for port 990 -TLS

I am trying download file through FTPS connection with port 990 (TLS) using FluentFTP. But the code is not able to establish connection and showing exception as "The remote certificate is invalid according to the validation procedure." The FTP…
Pradeep H
  • 592
  • 2
  • 7
  • 27
4
votes
2 answers

How to make FluentFTP to log to log4net log?

I couldn't find any information on how to do it. Basically FluentFTP is using System.Diagnostics to log their messages. FluentFtp expose the following static method: FtpTrace.AddListener(TraceListener listener); However I don't know if there is any…
Radek Strugalski
  • 560
  • 7
  • 22
3
votes
3 answers

Download multiple files concurrently from FTP using FluentFTP with a maximum value

I would like to download multiple download files recursively from a FTP Directory, to do this I'm using FluentFTP library and my code is this one: private async Task downloadRecursively(string src, string dest, FtpClient ftp) { foreach(var item…
TePi
  • 37
  • 6
2
votes
1 answer

Fluent FTP Won't connect to FTP Server

I'm trying to connect to an FTP Server using Fluent FTP. I have no issue using Filezilla when I use Port 22 (SFTP). However I can't connect to it using Fluent FTP. var client = new FtpClient(Constants.FtpHost, Constants.FtpUsername,…
R.Haughton
  • 227
  • 4
  • 16
2
votes
1 answer

File upload not hitting controller before upload is finished and temporarily saved to disk

Let's imagine I am running a .NET Core API on a device with 1GB storage and 1GB RAM. I want to upload a file from my website directly to a FTP server, without the file getting cached in memory or on disk. I have this working for downloading files,…
MortenMoulder
  • 6,138
  • 11
  • 60
  • 116
2
votes
1 answer

When executing CompareFileAsync outputs "ChecksumNotSupported" FluentFTP

FtpCompareResult compareResult = await ftp.CompareFileAsync(@"C:\test\Text.txt", @"/Text.txt"); Why does it output this? I would like to see Equals or NotEquals
VillyFiki
  • 129
  • 5
2
votes
1 answer

"Authentication failed because the remote party has closed the transport stream" when transferring to/from FTP server over TLS/SSL using FluentFTP

I have used FluentFTP lib im my project to work with FTP via TLS, but some trouble here. This code working fine: using (var conn = new FtpClient("adress", "user", "password")) { conn.EncryptionMode = FtpEncryptionMode.Explicit; …
2
votes
1 answer

FluentFTP and TLS connection to IIS fails with error 534

We currently use WinSCP C# library to connect to an FTP site using TLS. It works perfectly, but we are moving to Linux containers and WinSCP won't work. I've been trying to replicate the functionality using FluentFTP but with out success so far, the…
DanSharpe
  • 41
  • 2
  • 7
2
votes
1 answer

FluentFTP GetListing doesn't return any result

I seem to be unable to get any listing from / of the FTP server. (FileZilla is showing the directories and files). I got this code: FtpClient ftpConn = new FtpClient(); ftpConn.Host = FtpServer; …
Jurgen
  • 23
  • 3
1
2 3 4 5