FTP+SSL Error (General questions)

by mbutenko @, (5310 days ago)

When trying to connect to the server, I get an error Request denied, SSL not activated.

My code is:
[code]
_client = New FtpDLX
_client.LicenseKey = License Key Info
_client.Passive = True
_client.Authentication = Authentications.Password
_client.Protocol = Protocols.FTPSwithdata
_client.TransferMode = TransferModes.Binary
_client.Blocking = True

If direction = TransferDirection.Send Then
_client.Hostname = My.Settings.FtpSendAddress
_client.Login = My.Settings.FtpSendUserName
_client.Password = My.Settings.FtpSendPassword
Else
_client.Hostname = My.Settings.FtpReceiveAddress
_client.Login = My.Settings.FtpReceiveUserName
_client.Password = My.Settings.FtpReceivePassword
End If

_client.Connect()
[/code]


I am able to connect using WinSCP GUI client with SSL Explicit Encryption . It is my understanding that the FTPSwithdata is the protocol to use as SSL Explicit Encryption

Can someone provide me some guidance on why I am getting this error.

Thanks,
Marc

locked

Re: FTP+SSL Error

by woddrazen @, (5310 days ago) @ mbutenko

Hi Marc,


What happens if you try to connect there using our samples? You can use 1. Simple sample.

Let us know how it goes.


Regards,
Drazen

locked

Re: FTP+SSL Error

by mbutenko @, (5310 days ago) @ woddrazen

I was able to connect using the simple sample program, which led me to the issue. The issue was I was setting the port before the hostname, but still before the connect. I moved the port setting to after and now connect without error.

It is not clear from the documentation that the port needs to be set before the hostname.

Thanks,
Marc

locked