I copied the following example and I get the message "No connection could be made because the target machine actively refused it." at the ftp.Connect step.

What now?

   Dim ftp As New Ftp()

    ' Create an instance of TlsParameters class and 
    ' set the certificate request handler to  
    ' CertificateRequestHandler.StoreSearch. 
    Dim par As New TlsParameters()
    par.CertificateRequestHandler = CertificateRequestHandler.StoreSearch

    ' Connect securely using explicit SSL. 
    ' The third argument refers to the parameters class. 
    ftp.Connect(FTPServer, 21, par, FtpSecurity.Explicit)

    ' Connection is protected now, we can log in safely. 
    ' Some servers may not require login if the client 
    ' successfully authenticated itself using a certificate 
    ' known to the server - there is no need to call the Login 
    ' method in these cases. 
    ftp.Login(FTPUser, FTPPassword)

asked 16 Nov '10, 16:54

callen's gravatar image

callen
16
accept rate: 0%

Are you able to connect to the same FTP server using Windows command-prompt "ftp" utility?

(17 Nov '10, 12:06) Lukas Pokorny ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×12
×2

Asked: 16 Nov '10, 16:54

Seen: 447 times

Last updated: 16 Nov '10, 16:54