Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Connecting to a FTP Server

Connecting to a FTP Server

Scheduled Pinned Locked Moved C#
csharpsysadminhelpquestion
3 Posts 3 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kodanda Pani
    wrote on last edited by
    #1

    Hi All, How can i connect to a FTP server and down load the files from there in a C# application. We are using .NET frame work 1.1 and cant use any third party components. I have tried using Webclient class. Its working fine when i use a http URL But generating the following exception while connecting to a FTP server. System.NotSupportedException: The URI prefix is not recognized. Any help is appreciated. Thanks and Regards Mahe

    D D 2 Replies Last reply
    0
    • K Kodanda Pani

      Hi All, How can i connect to a FTP server and down load the files from there in a C# application. We are using .NET frame work 1.1 and cant use any third party components. I have tried using Webclient class. Its working fine when i use a http URL But generating the following exception while connecting to a FTP server. System.NotSupportedException: The URI prefix is not recognized. Any help is appreciated. Thanks and Regards Mahe

      D Offline
      D Offline
      Dave Herren
      wrote on last edited by
      #2

      Googling FTP C#[^] returns alot of examples and none of them seem to be using the webclient class, perhaps a different approach is needed.

      topcoderjax - Remember, Google is your friend.

      1 Reply Last reply
      0
      • K Kodanda Pani

        Hi All, How can i connect to a FTP server and down load the files from there in a C# application. We are using .NET frame work 1.1 and cant use any third party components. I have tried using Webclient class. Its working fine when i use a http URL But generating the following exception while connecting to a FTP server. System.NotSupportedException: The URI prefix is not recognized. Any help is appreciated. Thanks and Regards Mahe

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        The WebClient class doesn't work with FTP sites. .NET 1.1 does not have an FTP client built in. You'll either have to implement one yourself using sockets, or sue a third party component, or move up to Visual Studio .NET 2005 and .NET Framework 2.0. .NET 2.0 DOES have an FtpClient class built in.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups