Welcome to the Xceed Community | Help
Community Search  

Xceed FTP Time Out Error

Sort Posts: Previous Next
  •  10-21-2008, 5:12 AM Post no. 16257

    Xceed FTP Time Out Error

    Hi,

    I am using Xceed FTP component for uploading the files to FTP. I am getting the below error if the file size is more than 200 MB.

    Error :  The FTP command execution time-out.

    I am using FTPClient class to connect FTP site and i am using SendFile method to upload the file to FTP.

    Help needed from any one.

    Thanks

    Makesh. R


    Thanks
    Makesh. R
  •  10-21-2008, 4:02 PM Post no. 16305 in reply to 16257

    Re: Xceed FTP Time Out Error

    At first sight, it resembles a firewall problem.

    There are two channels opened when communicating with an FTP server.  A command channel, on which all commands are sent and received, and data channel, on which all the actual data (files) are transfered.

    The problem comes form the fact that while the file is being transfered on the data channel, nothing is being sent or received on the command channel.  If this goes on for a long period of time, the firewall, not seeing any data go through on the command channel, can close it, thinking it is not in use any more.  Therefore, when the server or the client wants to communicate on the command channel, it cannot do it since it is closed, thus the exception.

    You can do one of two things.  Either setup the firewall so its timeout period is long enough, so it does not close the command channel while the transfer is still going on.

    Or use the KeepAliveInterval property on FtpClient.  When this property is set, a NOOP command is sent on the command channel at the interval at which the property is set, which keeps the command channel active, so the firewall does not close it.

     


    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  11-05-2008, 2:03 AM Post no. 16648 in reply to 16305

    Re: Xceed FTP Time Out Error

    Hi André

    There is no firewall set in the FTP.  If i set KeepAliveInterval property,  it can be disconnect automatically (If the file is being upload or download) when the time given in this property exceed.

    Thanks

    Makesh. R


    Thanks
    Makesh. R
  •  11-05-2008, 12:13 PM Post no. 16671 in reply to 16648

    Re: Xceed FTP Time Out Error

    Not sure I understand your response.  Are you still having the issue or is it working?
    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  11-09-2008, 4:32 AM Post no. 16745 in reply to 16671

    Re: Xceed FTP Time Out Error

    Hi Andre,

       Still i am getting the same file.

     


    Thanks
    Makesh. R
  •  11-10-2008, 12:30 PM Post no. 16764 in reply to 16745

    Re: Xceed FTP Time Out Error

    The KeepAliveInterval property is not a timeout property, that is, when it is set, it will send a NOOP command at every interval to which it is set.  It is not a property that will disconnect the connection after the time set to it has passed.  So normally, you need to set it to a short time period, not a long one.  A long time period will not prevent the command channel from being closed.  So try to set it to a very short period, like 15 seconds, and see what happens.
    André
    Software Developer and Tech Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.