Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
8.1k views
in .NET FTP by (340 points)
Once awhile, I get this problem when try to rename a file on the FTP server. This exception generate by the rename(source, target) function. This does not happen all the time. What could cause this problem and what I can do to handle this case.
Thank you,

Hugh

3 Answers

0 votes
by (162k points)
Best to post the log file snippet that shows the problem.

You could try changing to passive mode, or using setActiveIPAddress() to force a valid IP address (the client's) to be supplied to the server.
0 votes
by (340 points)
Best to post the log file snippet that shows the problem.

You could try changing to passive mode, or using setActiveIPAddress() to force a valid IP address (the client's) to be supplied to the server.


Thank you, I will try to get the log file. The problem is that it happen at a remote location and I don't have access to the station there. The user just sent a capture of the pop message for the exception. Will try to get more information on it.

FYI, it is already using passive transfer mode. Also, I realized that I posted in the wrong forum. Please move the post to the edtFTP instead of the edtFTPj. Thank you very much.

ftpclient = New Ftp.FTPClient
ftpclient.RemoteHost = tsite
ftpclient.ControlPort = tport
ftpclient.Timeout = 9600000
ftpclient.ConnectMode = Ftp.FTPConnectMode.PASV
0 votes
by (162k points)
To get an illegal PORT command error from the server it must be in active mode, not passive.

Categories

...