I am receiving the below error after successfully connecting to an FTP Server from a C# application, but when Listing the items available in the server (using ftp.GetList()), the error appears.
Notes:
- When trying to access the server from FileZilla, it only works when
choosing Encryption: Plain FTP.
- I tried to use all types of SSLMode (None, Explicit, Implicit) when
connecting to the server and non works.
- I tried setting IsPassive = true, but also did not work.
The logs including the error:
2024-08-14 10:48:55.952 Opening log file.
*
2024-08-14 10:48:55.952 INFO FileLogWriter(2) [1] Info: Assembly: Rebex.Common 2020 R5 for .NET 4.6-4.8
2024-08-14 10:48:55.952 INFO FileLogWriter (2) [1] Info: Platform: Windows 6.2.9200 32-bit; CLR: 4.0.30319.42000
2024-08-14 10:48:55.952 DEBUG FileLogWriter(2) [1] Info: Culture: en; Windows-1252
2024-08-14 10:48:55.968 DEBUG Ftp (2) [1] Info: Starting data transfer.
2024-08-14 10:48:55.968 VERBOSE Ftp (2) [1] Info: Sent data over control connection:
0000 54-59-50-45-20-41-0D-0A
| TYPE A..
2024-08-14 10:48:55.968 INFO Ftp (2) [1] Command: TYPE A
2024-08-14 10:48:55.968 VERBOSE Ftp (2) [1] Info: Received data over control connection:
0000 |32-30-30-20-54-79-70-65 20-73-65-74-20-74-6F-201 200 Type set to |
0010 41-0D-0A
| A..
2024-08-14 10:48:55.984 INFO Ftp (2) [1] Response: 200 Type set to A
2024-08-14 10:48:56.015 DEBUG Ftp(2) [1] Info: Listening for data connection at 10.20.246.6:49754.
2024-08-14 10:48:56.015 VERBOSE Ftp (2) [1] Info: Sent data over control connection:
0000 | 50-4F-52-54-20-31-30-20 32-30-20-32-34-36-2C-36 PORT 10,20,246,6
0010 2C-31-39-34-20-39-30-0D OA
|,194,90..
2024-08-14 10:48:56.015 INFO Ftp (2) [1] Command: PORT 10,20,246,6,194,90
2024-08-14 10:48:56.015 VERBOSE Ftp (2) [1] Info: Received data over control connection:
0000 |32-30-30-20-50-4F-52-54 20-63-6F-6D-6D-61-6E-64 200 PORT command
0010 20-73-75-63-63-65-73-73 66-75-60-2E-0D-0A
| successful...
2024-08-14 10:48:56.015 INFO Ftp (2) [1] Response: 200 PORT command successful.
2024-08-14 10:48:56.015 VERBOSE Ftp (2) [1] Info: Sent data over control connection:
0000 4D-4C-53-44-20-2A-2E-2A 0D-0A
2024-08-14 10:48:56.015 INFO Ftp (2) [1] Command: MLSD
| MLSD ...
2024-08-14 10:48:56.015 VERBOSE Ftp (2) [1] Info: Received data over control connection:
0000 |35-35-30-20-55-6E-6B-6E 6F-77-6E-20-65-72-72-6F| 550 Unknown erro
0010
72-0D-0A
| r..
2024-08-14 10:48:56.015 INFO Ftp (2) [1] Response: 550 Unknown error
2024-08-14 10:48:56.015 DEBUG Ftp (2) [1] Info: Error while starting data transfer: Rebex.Net. Ftp Exception: Unknown
error (550).
at Rebex.Net.Ftp.quufg(String p0, Boolean p1, lqiiz p2, kuanm p3, Int64 p4, FtpTransferState p5)
2024-08-14 10:48:56.015 DEBUG Ftp (2) [1] Info: Error while initializing data connection.
2024-08-14 10:48:56.015 ERROR Ftp (2) [1] Info: Rebex.Net. FtpException: Unknown error (550).
at Rebex.Net.Ftp.quufg(String p0, Boolean p1, lqiiz p2, kuanm p3, Int64 p4, FtpTransferState p5)
at Rebex.Net.Ftp.1rmeg(String po, Boolean p1, Stream p2, Int64 p3, String p4, kuanm p5)
2024-08-14 10:48:56.015 ERROR Ftp (2) [1] Info: Rebex.Net. FtpException: Unknown error (550).
at Rebex.Net.Ftp.quufg(String po, Boolean p1, lqiiz p2, kuanm p3, Int64 p4, FtpTransferState p5)
at Rebex.Net.Ftp.1rmeg(String p0, Boolean p1, Stream p2, Int64 p3, String p4, kuanm p5)