Home Forums .NET libraries Xceed SFTP/FTP for .NET Sometimes receiving empty or imcomplete files, getting empty directories

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #21047 |

    When requesting a folder content, sometimes I get an empty directory, when indeed there a files inside it!

    I use this code:

        Private WithEvents m_objFTPClient As Xceed.Ftp.AsyncFtpClient
     

        :

        result = m_objFTPClient.BeginGetFolderContents(“*”, Nothing, Nothing)
        While Not result.IsCompleted
            Application.DoEvents()
        End While
        objFTPFolderList = m_objFTPClient.EndGetFolderContents(result)

    A second problem: when I try to receive (multiple) files, sometimes no files are found, sometimes files are transferred incomplete!

        result = m_objFTPClient.BeginReceiveMultipleFiles(“*.*”, strDestFolder, False, False, Nothing, Nothing)
        While Not result.IsCompleted
            Application.DoEvents()
        End While
        m_objFTPClient.EndReceiveMultipleFiles(result)

    The FTP-Server is a Filezilla-Server 0.9.27, using SSL. In the serverlog I can see the server responding to the request, but the operations seemed to have already ended for the FTP-component.

    Can you help me please?!

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Robin (had 5764 views)

    User (Old forums)
    Member
    Post count: 23064

    Can you set the TraceWriter property so we can get a log of the communication with the server?

    FtpClient.TraceWriter = new StreamWriter( @”D:\ftp.log”, true );

    What size are the files not transfered or incomplete?

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 373 views)

    User (Old forums)
    Member
    Post count: 23064

    Thank you,

    this is a logfile for the case, when the directory /ZV Ausgang where returned as empty (indeed there are three files inside) — as you can see, I repeat three times when I get an empty directory (FolderItems.Count = 0). Is there a newer version of the Xceed.FTP.dll? I use version 3.7.8125.15060, is there an update?

    Filesizes vary from 2-8 KB textfiles up to 10MB zipfiles.

     Connected to 89.31.2.26:990 on 16.10.2008 @ 11:07:11
    < 220-FileZilla Server version 0.9.27 beta
    < 220-written by Tim Kosse (Tim.Kosse@gmx.de)
    < 220 Please visit http://sourceforge.net/projects/filezilla/
    > USER HN90000ftp
    < 331 Password required for hn90000ftp
    > PASS *****
    < 230 Logged on
    > PROT P                                    I send this per SendCustomCommand
    < 200 Protection level set to P
    > CWD /Eingang Belege
    < 250 CWD successful. “/Eingang Belege” is current directory.
    > CWD /Eingang Daten
    < 250 CWD successful. “/Eingang Daten” is current directory.
    > CWD /ZV Eingang
    < 250 CWD successful. “/ZV Eingang” is current directory.
    > CWD /Eingang Debitoren
    < 250 CWD successful. “/Eingang Debitoren” is current directory.
    > CWD /Eingang sonstige Belege
    < 250 CWD successful. “/Eingang sonstige Belege” is current directory.
    > CWD /Ausgang indizierte Belege
    < 250 CWD successful. “/Ausgang indizierte Belege” is current directory.
    > TYPE A
    < 200 Type set to A
    > PASV
    < 227 Entering Passive Mode (89,31,2,26,162,65)
    > LIST *
    Data connection established with 89.31.2.26:41537 on 16.10.2008 @ 11:07:17    Server says: SSL connection for data connection established

    < 150 Connection accepted
    < 226 Transfer OK
    > TYPE A
    < 200 Type set to A
    > PASV
    < 227 Entering Passive Mode (89,31,2,26,162,74)
    > LIST *
    Data connection established with 89.31.2.26:41546 on 16.10.2008 @ 11:07:20
    < 150 Connection accepted
    < 226 Transfer OK
    > TYPE A
    < 200 Type set to A
    > PASV
    < 227 Entering Passive Mode (89,31,2,26,162,76)
    > LIST *
    Data connection established with 89.31.2.26:41548 on 16.10.2008 @ 11:07:20
    < 150 Connection accepted
    < 226 Transfer OK
    > PWD
    < 257 “/Ausgang indizierte Belege” is current directory.
    > TYPE A
    < 200 Type set to A
    > PASV
    < 227 Entering Passive Mode (89,31,2,26,162,60)
    > LIST *.*
    Data connection established with 89.31.2.26:41532 on 16.10.2008 @ 11:07:21
    < 150 Connection accepted
    < 226 Transfer OK
    > TYPE I
    < 200 Type set to I
    > PASV
    < 227 Entering Passive Mode (89,31,2,26,162,61)
    > RETR 200810100738.ZIP
    Data connection established with 89.31.2.26:41533 on 16.10.2008 @ 11:07:22
    < 150 Connection accepted
    < 226 Transfer OK
    > DELE 200810100738.ZIP
    < 250 File deleted successfully
    > CWD /ZV Ausgang
    < 250 CWD successful. “/ZV Ausgang” is current directory.
    > TYPE A
    < 200 Type set to A
    > PASV
    < 227 Entering Passive Mode (89,31,2,26,162,64)
    > LIST *
    Data connection established with 89.31.2.26:41536 on 16.10.2008 @ 11:07:40
    < 150 Connection accepted
    < 226 Transfer OK
    > TYPE A
    < 200 Type set to A
    > PASV
    < 227 Entering Passive Mode (89,31,2,26,162,65)
    > LIST *
    Data connection established with 89.31.2.26:41537 on 16.10.2008 @ 11:07:40
    < 150 Connection accepted
    < 226 Transfer OK
    > TYPE A
    < 200 Type set to A
    > PASV
    < 227 Entering Passive Mode (89,31,2,26,162,66)
    > LIST *
    Data connection established with 89.31.2.26:41538 on 16.10.2008 @ 11:07:40
    < 150 Connection accepted
    < 226 Transfer OK
    > USER softwareupdates
    < 331 Password required for softwareupdates
    > PASS *****
    < 230 Logged on
    > TYPE I
    < 200 Type set to I
    > PASV
    < 227 Entering Passive Mode (89,31,2,26,162,67)
    > RETR latest.txt
    Data connection established with 89.31.2.26:41539 on 16.10.2008 @ 11:07:55
    < 150 Connection accepted
    < 226 Transfer OK
    > QUIT
    Disconnected from 89.31.2.26:990 on 16.10.2008 @ 11:07:58

    Is it a speed problem? This happens not always, sometimes everything works fine.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Robin (had 565 views)

    User (Old forums)
    Member
    Post count: 23064

    Basically, yes it is a speed problem.  This is most likely due to a bug in our library in which the SSL layer does not have the required time to process the information for very small files.

    Our next version should correct this problem.  It should be available sometime in November.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 781 views)

    User (Old forums)
    Member
    Post count: 23064

    Can you verify that this issue has been fixed? If so, what build was it fixed in?

     Cheers.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Bobby (had 553 views)

    User (Old forums)
    Member
    Post count: 23064

    No, the issue is not yet fixed, it will hopefully be available in the February 2009 release.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 311 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks for the update. I really hope it is fixed by then as the SSL feature (explicit) is pretty much useless until this bug is fixed. It reports incorrect folder contents nearly 80% of the time.

    The main reason I chose Xceed for the FTP library was largely based on your support for FTPS. To find out that the SSL feature is so buggy that it is not usable is a huge disappointment.

    Can you recommend any workarounds in the meantime?

     

     

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Bobby (had 582 views)

    User (Old forums)
    Member
    Post count: 23064

    Unfortunately, there is no workaround at this time.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 388 views)

    User (Old forums)
    Member
    Post count: 23064

    Actually, we can send the beta version to active Vanguard support subscribers.  This would permit you to make sure the issue is fixed in the next version, and if so, use it until the official version is released.

    To get more information on Vanguard support, contact sales@xceed.com.

     

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 5804 views)

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.