Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.9k views
in .NET FTP by (180 points)
I am a little new to ftp processing and I'm receiving error code 534, (SSL not activated) when using the code below when trying to ftp over SSL.
sftp.LogLevel = EnterpriseDT.Util.Debug.LogLevel.All
sftp.ServerAddress = ftpRemoteServer
sftp.UserName = ftpRemoteLogin
sftp.Password = ftpRemotePassword
sftp.LicenseOwner = "xxxxxxxxxxxxxxxx"
sftp.LicenseKey = "xxxxxxxxxxxxxxx"
sftp.Protocol = FileTransferProtocol.FTPSExplicit

sftp.ServerValidation = SecureFTPServerValidationType.None
sftp.AuthenticationMethod = EnterpriseDT.Net.Ssh.AuthenticationType.Password
sftp.Connect()
sftp.ConnectMode = FTPConnectMode.ACTIVE
sftp.TransferType = FTPTransferType.ASCII
'   sftp.ChangeWorkingDirectory(ftpRemoteDirectory)
sftp.UploadFile(ftpFullLocalFile, ftpLocalName)

What property am I missing?
Thanks for any help.
Dan

4 Answers

0 votes
by (162k points)
Please email us the zipped log file. Also please don't post your license key on the forums!
0 votes
by (180 points)
Support2,
Below is the error log.
thanks for all your help.
Dan
INFO [LicenseProperties] 28 May 2008 08:52:03.328 : Licence expiry date: 12/31/9999
INFO [LicenseProperties] 28 May 2008 08:52:03.328 : Production license
INFO [LicenseProperties] 28 May 2008 08:52:03.344 : Licence expiry date: 12/31/9999
INFO [LicenseProperties] 28 May 2008 08:52:03.344 : Production license
DEBUG [SSLFTPClient] 28 May 2008 08:52:03.344 : Connecting to ftp.test.iconnectdata.com:21
DEBUG [HostNameResolver] 28 May 2008 08:52:03.344 : ftp.test.iconnectdata.com resolved to 65.82.131.75
DEBUG [SSLFTPControlSocket] 28 May 2008 08:52:03.344 : waitOnShutdownSSL=True
DEBUG [ExFTPControlSocket] 28 May 2008 08:52:03.359 : Connecting directly to ftp-server 65.82.131.75:21
DEBUG [ExFTPControlSocket] 28 May 2008 08:52:03.406 : Created control-socket: SocksContext=, ProxySettings=NoProxy, RemoteHost=65.82.131.75, controlPort=21, timeout=120000
DEBUG [FTPControlSocket] 28 May 2008 08:52:03.469 : 220 FTP. Time = 08:51:48
DEBUG [FTPControlSocket] 28 May 2008 08:52:03.469 : ---> AUTH TLS
DEBUG [FTPControlSocket] 28 May 2008 08:52:03.484 : 534 Request denied, SSL not activated.
INFO [FTPControlSocket] 28 May 2008 08:52:03.484 : Expected reply codes = [234,334,200]
DEBUG [AsyncProcessor] 28 May 2008 08:52:06.172 : Stopping FTP task processor.
DEBUG [AsyncProcessor] 28 May 2008 08:52:06.172 : FTP task processor stopped.
DEBUG [FTPControlSocket] 28 May 2008 08:52:06.172 : ---> QUIT
DEBUG [FTPControlSocket] 28 May 2008 08:52:06.187 : 221 Goodbye.
DEBUG [SecureSocket] 28 May 2008 08:52:06.187 : Shutdown(Both)
0 votes
by (162k points)
Have you tried with Filezilla? Can you post the Filezilla log?
0 votes
by (162k points)
This appears to be solved by setting the SSLVersion property in SecureFTPConnection to SSLFTPSSLVersion.SSL3.

Future versions from 5.0.6 onwards will be compatible with SSL3 & TLS1 without having to explicitly set this.

Categories

...