Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
1.6k views
in .NET FTP by
Hi

I am using the edtftpnet dll to upload files to the ftp server. It works fine when i try to upload a text file. But it gives me a error A connection attempt failed.
The code i used is
ftp.Login(user, pass)
ftp.ConnectMode = FTPConnectMode.PASV
ftp.TransferType = FTPTransferType.BINARY
ftp.Timeout = 5000
ftp.put("sample.tiff","sample.tiff")

Why does this error occur?

What should i do?

Please log in or register to answer this question.

Categories

...