This project is read-only.

Unable to use

Aug 24, 2010 at 2:55 PM

I am new to FTPS and trying to utlize it in a VB .NET program.  Currently we are using a product from CoreFTP and the only settings are "port=990" and the connection is set to "FTPS (SSL DIRECT)" and this works fine.

In my code, I get a FTPCommandException, "Access Denied".  What am I not doing correctly? The sitename and creditials are for example use only.

My code is as follows:

 

Using client As FTPSClient = NewFTPSClient()

Try 

client.Connect("sitename", New Net.NetworkCredential("username", "password"))

Catch ftpex2 As AlexPilotti.FTPS.Common.FTPCommandException

MsgBox(ftpex2.Message, MsgBoxStyle.Information,"Command Exception")

 Catch ex As Exception

MsgBox(ex.Message, MsgBoxStyle.Information,"VB Exception")

 End Try

 

End Using

Sep 29, 2010 at 12:29 PM

Hi,

are you connecting in explicit or implicit FTPS mode?

Please check the corresponding parameters in the Connect(...) method. You can also explicitly pass a port number.

 

Cheers,

Alessandro Pilotti

[MVP / IIS]