0 votes

I receive the error base: {"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."}

the FTP SERVER: 220 FileZilla Server version 0.9.43 beta

using (var ftp = new Ftp())
{
    ftp.Connect(ip);
    ftp.Login(user, pass);

    ftp.CreateFolder(ClientID);
    ftp.ChangeFolder(ClientID);

    ftp.Upload("teste.txt", barq);

    ftp.Close();
}

The create folder is OK.
the error occours on upload file.

With Windows IIS ftp works normaly.

Att.
Helio Elias

by (200 points)
What is the exception stack trace?

How does the log look like:
https://www.limilabs.com/blog/logging-in-ftp-dll

1 Answer

0 votes

This error means that the connection was interrupted.
Does this happen always or happened just once?
Is the server configured in such way it accept passive FTP connections?

As a side note: we use FileZilla server during our pre-release tests, so the server is certainly not a problem.

by (301k points)
The problem was the FTP mode.

I configured it as Active, and it work's - Thanks for your help.

Att.
Helio Elias
...