Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[4340] FTP client library for C#

Last post 11-27-2006 3:32 PM by vglass. 13 replies.
Page 1 of 1 (14 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [4340] FTP client library for C#

    This thread is for discussions of FTP client library for C#.

    • Post Points: 55
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 07-27-2004 4:33 AM In reply to

    • Kele
    • Not Ranked
    • Joined on 07-27-2004
    • New Member
    • Points 5

    426 Failure Writing Network Stream

    I have been using this FTPClient for sometime, but recently have needed to ftp larger files ie. over 500mb They upload okay however when
    I download them I get the 426 Failure Writing Network Stream error.

    Does anybody know how to fix this?
    • Post Points: 0
  • 09-10-2004 4:18 PM In reply to

    edtFTPnet

    EDT publishes edtFTPnet, which is a free, open-source FTP client library for .NET.  It's published under the LGPL licence meaning developers can incorporate it into their closed-source applications, as long a few simple conditions are met.  The URL is http://www.enterprisedt.com/products/edtftpnet/overview.html
    • Post Points: 0
  • 11-12-2004 8:33 PM In reply to

    • mpadams
    • Not Ranked
    • Joined on 11-12-2004
    • New Member
    • Points 5

    Wrote a C# program to use this class....



    I've posted a program that uploads to FTP & emails at the same time. The FTP functionality is provided by this class, and works okay: thanks!

    http://www.wolfsheep.com/map
    • Post Points: 0
  • 11-22-2004 12:19 AM In reply to

    • tems99
    • Not Ranked
    • Joined on 11-22-2004
    • New Member
    • Points 10

    slow when uploading

    hi..i used your ftp library and everything would have been great but its pretty slow when uploading and downloading stuff. it takes about 5 seconds for a 10k file to be uploaded. i have traced down whats causing it and it seems that it takes about 5 seconds to finish this line....

    ep=new IPEndPoint(Dns.Resolve(ipAddress).AddressList[0], port);

    this line is found in the createDataSocket routine. is there a workaround for this? ...or is this class just slow or is there another implementation to solve this? thanks
    • Post Points: 0
  • 01-25-2005 9:10 PM In reply to

    A very slight modification

    The BinaryMode property sets the mode of the FTP transmission, but fails to set the binMode variable.  This will cause any check of the BinaryMode property to return whatever the initial value of binMode is.

    To fix this, just add "this.binMode = value;" after the "if ( this.binMode == value) return;" line.

    -Mike
    • Post Points: 0
  • 02-16-2005 11:27 AM In reply to

    Read Only files not getting transferred

    Dan, your program is excellent and I'm delighted to use it in my application. However, it does not transfer files marked as 'read only'. Is there any way I can get around this problem ? Would be delighted if you help me. Thanks.

    Raghunath
    • Post Points: 0
  • 04-06-2005 12:57 PM In reply to

    Append?

    I have a problem implementing (APPE)ND functionality in this class. One of our clients requested exporting data via FTP, so I need to connect to an FTP and add rows to a textfile. I could just download the file first append new text and upload back to the server, but where's the fun in that?

    The method I wrote looks like this and genrates the "Can't open data connection." exception in the createDataSocket() method:

    public void AppendToFile(string localFile, string remoteFile)
    {
       if ( !this.loggedin ) this.Login();
       this.sendCommand("APPE " + remoteFile);
               
       if(this.resultCode == 150)
       {
           Socket socket = this.createDataSocket();
           FileStream input = new FileStream(localFile,FileMode.Open);
           
           while ((bytes = input.Read(buffer,0,buffer.Length)) > 0)
           {
               socket.Send(buffer, bytes, 0);
           }
           input.Close();
           if (socket.Connected)
           {
               socket.Close();
           }
       }
    }

    I can connect, login, upload and download without any issues. In my code I call GetFileList() method before Appending to get the file to append to. But that method cannot hog the socket, right?

    Maybe I've misunderstood the usage of the APPE command (even though I've read the entire FTP RFC).

    I'm not that experienced in socket programming either, I just copied the code from the Upload method and removed all of the filechecks.

    Did I miss something fundamental?


    • Post Points: 0
  • 04-22-2005 7:04 PM In reply to

    • bimboy
    • Not Ranked
    • Joined on 04-22-2005
    • New Member
    • Points 20

    image upload problem

    i cannot upload a *.gif file on my ftp site... is there anyone who can try and explaine to my why? please and thank you! i can create a folder delete a folder but i can't upload an image file.. any help will be greatly appreciated. thanks again
    • Post Points: 0
  • 04-22-2005 7:08 PM In reply to

    • bimboy
    • Not Ranked
    • Joined on 04-22-2005
    • New Member
    • Points 20

    PASV VS. PORT

    is there anyone here knows how to use the ftp image upload code... instead of it connecting through PASV.... is there anyway i could use PORT instead...
    i hope this time someone responds to my questions... because i couldn't figure this out. Please help
    • Post Points: 0
  • 04-25-2005 3:44 PM In reply to

    • bimboy
    • Not Ranked
    • Joined on 04-22-2005
    • New Member
    • Points 20

    file upload problem

    Can't connect to remote serverSystem.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)

    Can anyone please help me solve this problem.....
    • Post Points: 0
  • 05-02-2005 3:04 PM In reply to

    • bimboy
    • Not Ranked
    • Joined on 04-22-2005
    • New Member
    • Points 20

    PASV VS. PORT

    is there anyone here knows how to use the ftp image upload code... instead of it connecting through PASV.... is there anyway i could use PORT instead...
    i hope this time someone responds to my questions... because i couldn't figure this out. Please help

    Note: Edited by bimboy on 5/2/2005
    • Post Points: 0
  • 05-10-2005 5:11 PM In reply to

    • rcole02
    • Not Ranked
    • Joined on 05-10-2005
    • New Member
    • Points 5

    bug in Download()

    There's a bug in the download while loop.
    The test is looking at timeout and should be changed to:

    while (this.bytes>0)
    {
       this.bytes = cSocket.Receive(buffer, buffer.Length, 0);
       output.Write(this.buffer,0,this.bytes);
       bytestransferred += this.bytes;
    }
    • Post Points: 0
  • 11-27-2006 3:32 PM In reply to

    • vglass
    • Not Ranked
    • Joined on 11-27-2006
    • New Member
    • Points 30

    Re: [4340] FTP client library for C#

    may wish to look at the following component.  Includes support for ftp and ftps (ftp over ssl).

    http://www.jscape.com/sftpdotnet/



    Van Glass
    JSCAPE
    Your source for Java and .NET Internet components
    http://www.jscape.com
    • Post Points: 5
Page 1 of 1 (14 items)