Hi
that's what drives me crazy too.
I have created a FTP in the azure cloud allowing only active sessions.
Unfortunately I can not replicate the issue
It's working perfectly fine
Something is strange with the server setup...
f.Mode = FtpMode.Active;
f.DontUseCompression = true;
f.TransfersDataType = FtpDataType.Ascii;
f.Connect(ftpserver);
f.Login(ftpuser, ftppassword);
f.Upload("Test.txt", @"c:\temp\e.txt");
f.Close();
Ftp.dll Information: 0 : 8 11:16:55 Connecting to '52.174.59.196:21', SSL: False.
Ftp.dll Information: 0 : 8 11:16:55 Control connection uses port: 64025 (250,25)
Ftp.dll Information: 0 : 8 11:16:56 S: 220-Microsoft FTP Service
Ftp.dll Information: 0 : 8 11:16:56 S: 220 Svenni FTP
Ftp.dll Information: 0 : 8 11:16:56 C: USER ***************
Ftp.dll Information: 0 : 8 11:16:56 S: 331 Password required
Ftp.dll Information: 0 : 8 11:16:56 C: PASS ***************
Ftp.dll Information: 0 : 8 11:16:56 S: 230-Welcome by Svenni FTP
Ftp.dll Information: 0 : 8 11:16:56 S: 230 User logged in.
Ftp.dll Information: 0 : 8 11:16:56 C: FEAT
Ftp.dll Information: 0 : 8 11:16:56 S: 211-Extended features supported:
Ftp.dll Information: 0 : 8 11:16:56 S: LANG EN*
Ftp.dll Information: 0 : 8 11:16:56 S: UTF8
Ftp.dll Information: 0 : 8 11:16:56 S: AUTH TLS;TLS-C;SSL;TLS-P;
Ftp.dll Information: 0 : 8 11:16:56 S: PBSZ
Ftp.dll Information: 0 : 8 11:16:56 S: PROT C;P;
Ftp.dll Information: 0 : 8 11:16:56 S: CCC
Ftp.dll Information: 0 : 8 11:16:56 S: HOST
Ftp.dll Information: 0 : 8 11:16:56 S: SIZE
Ftp.dll Information: 0 : 8 11:16:56 S: MDTM
Ftp.dll Information: 0 : 8 11:16:56 S: REST STREAM
Ftp.dll Information: 0 : 8 11:16:56 S: 211 END
Ftp.dll Information: 0 : 8 11:16:56 C: OPTS UTF8 ON
Ftp.dll Information: 0 : 8 11:16:56 S: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Ftp.dll Information: 0 : 8 11:16:57 C: TYPE A
Ftp.dll Information: 0 : 8 11:16:58 S: 200 Type set to A.
Ftp.dll Information: 0 : 8 11:16:58 Binding to: 192.168.2.12:0
Ftp.dll Information: 0 : 8 11:16:58 Bound to: 192.168.2.12:0
Ftp.dll Information: 0 : 8 11:16:58 C: PORT 192,168,2,12,250,26
Ftp.dll Information: 0 : 8 11:16:58 S: 200 PORT command successful.
Ftp.dll Information: 0 : 8 11:16:58 C: STOR Test.txt
Ftp.dll Information: 0 : 8 11:16:58 S: 125 Data connection already open; Transfer starting.
Ftp.dll Information: 0 : 8 11:16:58 Data connection established.
Ftp.dll Information: 0 : 8 11:16:58 S: 226 Transfer complete.
Ftp.dll Information: 0 : 8 11:16:59 C: QUIT
Ftp.dll Information: 0 : 8 11:16:59 S: 221 Bye