Hi,
I am trying to connect to our FTP Server.
I used a commercial software FTP and it connects well to our server.
Then I try to use the Free Version of Your FTP Component.
I am having this error: "Exception has been thrown by the target of an invocation"
Here is my code:
With clsFTPConn
.TransferBufferSize = 100000
.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.BINARY
.EventsEnabled = True
.ServerAddress = strHostName
.ServerPort = strPort
.UserName = strUsername
.Password = strPassword
.Connect()
End With
In .connect method that error shows.
But The Program goes to the event of LoggedIn and Connected.
What seems to be the problem?
Thanks.
IANIAN