Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
Author | Forum: PowerTCP FTP for .NET Topic: FTPS and EncryptData=False |
steinot2 From: Norway Posts: 4 Member Since: 07/20/15 |
posted February 20, 2020 8:43 AM I'm having a problem with transferring files to ftp-site with FTPS, ConnectType.Passive, EncryptControl.Implicit and EncryptData=True When a file is transferred using the .Put-function the error is : "Authentication failed because the remote party has closed the transport stream.". The file is actually created on the ftp-server, but is empty. When I change EncryptData=False then it is working as it should. Why does setting .EncryptData to True cause this error? |
Nick B (Admin) From: Utica, NY USA Posts: 619 Member Since: 05/25/10 Extra Support Options Custom Application Development |
posted February 20, 2020 11:03 AM Hello, FTP uses two connections/channels - one for commands, and one for actually transferring the data. You'd need to contact the server's admin for more information (regarding configuration, or perhaps examining their logs), but I would assume that the server isn't configured for data channel encryption. The file is created via a command over the command channel, but actually uploading data to it fails due to the authentication failure. |
steinot2 From: Norway Posts: 4 Member Since: 07/20/15 |
posted September 23, 2020 7:20 AM I got this one working setting .EncryptData=False, but now the ftp-server has been updated/changed and i'm getting the following: Command=PBSZ 0 Code=200 Text=PBSZ=0 Command=PROT C Code=534 Text=This server requires an encrypted data connection with PROT P So, I've changed .EncryptData=True It now connects and authenticates, but .Put fails with System.IO.IOException "Authentication failed because the remote party has closed the transport stream." StackTrace: at Dart.Ftp.Ftp.(Command , String& , Int64 , FileType ) at Dart.Ftp.Ftp.(String& , Int64 , StoreType ) at Dart.Ftp.Ftp.(Stream , String , Int64 , StoreType , Int32 , Int32 , Int64& , Int64 ) at Dart.Ftp.Ftp.(FileInfo , String , Synchronize , Int32 , Int32 , Int64& , Int64 ) at Dart.Ftp.Ftp.Put(String localPath, String remotePath, Synchronize sync) |
Jamie Powell (Admin) From: Rome, NY USA Posts: 448 Member Since: 03/13/07 Extra Support Options Custom Application Development |
posted September 30, 2020 4:18 PM What version are you using? Please send a log file (such as one from the included FTP ListView Client sample) into support@dart.com. ------ |
steinot2 From: Norway Posts: 4 Member Since: 07/20/15 |
posted October 8, 2020 10:51 AM v 4.7.7 FEAT 211-Features: MDTM REST STREAM SIZE MLST type*;size*;modify*; MLSD AUTH SSL AUTH TLS PROT PBSZ UTF8 CLNT MFMT EPSV EPRT 211 End OPTS UTF8 ON 202 UTF8 mode is always enabled. No need to send this command. PBSZ 0 200 PBSZ=0 PROT P 200 Protection level set to P USER HumanEF 331 Password required for xxxx PASS xxxx 230 Logged on PWD 257 "/" is current directory. PASV 227 Entering Passive Mode (xxxxxxxx) LIST 150 Opening data channel for directory listing of "/" Exception: Authentication failed because the remote party has closed the transport stream. |
Jamie Powell (Admin) From: Rome, NY USA Posts: 448 Member Since: 03/13/07 Extra Support Options Custom Application Development |
posted October 15, 2020 10:33 AM An issue like this is almost always resolved by setting Ftp.Session.ConnectType to DataConnectType.PassiveOverrideAddress. However, it does seem odd to me that this would have worked previously, unless the server software was changed? If you continue to have an issue after changing that property, I'd suggest you try contacting the server administrator for additional assistance. All the best, Jamie ------ |
Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
![]() |