Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.2k views
in .NET FTP by (240 points)
Hi,

I have this piece of code in a web application:

srcFileName = "FileName";
destFileName = "DestFileName";
try
{
EnterpriseDT.Net.Ftp.FTPClient ftpClient = new EnterpriseDT.Net.Ftp.FTPClient("ftp.ftpsite.com");

String username = "username";
String password = "password";

ftpClient.Login(username,password);

ftpClient.Put(srcFileName,destFileName);

ftpClient.Quit();
}
catch (Exception err)
{
}

When I go to the web site, uploads the file to the ftp server successfully on the web server. But on other machines, the web application doesn't upload anything to the ftp server.

Could anyone please help me?

Thanks very much in advance.

Please log in or register to answer this question.

Categories

...