Download from FTP site using encryption

I'm using this visual studio 2008code to download from a site using TLS/SSL Implicit encryption.
SessionOptions sessionOptions = new SessionOptions
                        //obtain SshHostKeyFingerprint by opening winscp, clicking on commands in menu then choosing server and protocol information
                        Protocol = Protocol.Ftp ,
                        HostName = "",
                        UserName = "rtrs",
                        Password = "zzz",
                        PortNumber = 990

Open in new window

I'm getting this error message.
WinSCP.SessionRemoteException: Connection failed. ---> WinSCP.SessionRemoteException: Timeout detected.

Assuming the password is correct, what am I doing wrong?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'd say you should try this first:
Protocol = Protocol.Ftp ,
Protocol = Protocol.sFtp ,

Also, always try with the WinSCP windows client first to check if all parameters are correct (server, username, password etc)
If you checked everything, and it doesn't connect, you're going to mess with your code, even if your code wasn't at fault (maybe it was a server side problem).
AlHal2Author Commented:
I tried the WINSCP windows client.  Protocol is ftp.
It uses TLS/SSL Implicit encryption.
servername, hostname and password are correct.
I could connect to the site with winscp using these details.
To get the certificate I clicked on commands in menu then choosing server and protocol information.
I got this error message.
SessionOptions.TlsHostCertificateFingerprint or SessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate is set, but SessionOptions.FtpSecure is FtpSecure.None.
Add to your enclosed code:

FtpSecure = FtpSecure.Implicit

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AlHal2Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.