Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.4k views
in .NET FTP by (540 points)
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

1 Answer

0 votes
by (540 points)
OK.. I already solved it...
I set the connectmode to active mode..

thanks

Categories

...