FTP Transfer in ASP.NET?

Last post 04-11-2006 8:56 AM by MorningZ. 6 replies.

Sort Posts:

  • FTP Transfer in ASP.NET?

    11-07-2003, 6:37 AM
    Does anybody know if its possible to transfer a file to another machine using FTP in my ASP page?

    I'm trying to re-write a VB6 application using ASP.NET.

    This app display a user input form and when the user clicks the submit button all the details from the web form are written to a text file on the web server and then transferred to another machine via FTP.

    The VB6 app is using the wininet.dll api to do same.

    I'm looking for a simple solution so any guidelines or references would be much appreciated.

    Thanks in advance
  • Re: FTP Transfer in ASP.NET?

    11-07-2003, 6:57 AM
    • Loading...
    • SomeNewKid
    • Joined on 08-10-2003, 12:16 AM
    • Western Australia
    • Posts 8,027
    Writing an FTP component is not a simple exercise.

    So, the "simple" solution is to buy an FTP component.

    I bought Rebex FTP for .NET.
    It is wonderfully simple to use. Download the trial version and see if it provides the functionality you need.

    Alister
  • Re: FTP Transfer in ASP.NET?

    11-07-2003, 7:04 AM
    • Loading...
    • SreedharK
    • Joined on 07-10-2003, 6:58 AM
    • Virginia
    • Posts 3,119
    • Moderator
      TrustedFriends-MVPs
    Why don't you check below link

    http://www.dotnetbips.com/displayarticle.aspx?id=26

    This is a free component!

    Also try in Gotdotnet samples. You will find many free ASPNET FTP comonents with source!
    Good luck!
    Sreedhar
    http://www.w3coder.com
    weblog http://weblogs.asp.net/skoganti
  • Re: FTP Transfer in ASP.NET?

    11-07-2003, 7:27 AM
    Thanks guys.

    I'm in the process of trying out the the two components you mention.

    Problem is... I'm trasnferring to a mainframe machine running Open VMS. Not sure if these components are compatible or not. Only time will tell.
  • Re: FTP Transfer in ASP.NET?

    11-07-2003, 8:29 AM

    The Rebex component was good. I was able to produce the required functionality in 7 lines of code.

    Thanks!!!
  • Re: FTP Transfer in ASP.NET?

    04-11-2006, 8:06 AM
    • Loading...
    • naceau
    • Joined on 04-11-2006, 9:46 AM
    • UK
    • Posts 3

    An other approach is to use VisualPaseo, a freeware that provide Graphical interface to configure component like FTP.

    Ftp wizards published are FTP wininet, Catalist and command mode. They all provide the initial account for mainframe connection.

    Download: ViualPaseo Community Edition

    Find out more : http://www.paseosoft.com

    Paseosoft product architect
  • Re: FTP Transfer in ASP.NET?

    04-11-2006, 8:56 AM
    • Loading...
    • MorningZ
    • Joined on 07-22-2002, 10:39 AM
    • Fort Lauderdale, FL
    • Posts 1,805

    I've got a DLL called "FTPFactory.dll" that I found somewhere a few years ago, works fine with ASP.NET, some sample code of my usage of it:

    Top of code behind:
    Imports FtpLib

    In the function or sub to do the FTP-ing:
    Dim Client As FTPFactory = New FTPFactory
    Client.setRemoteHost("The FTP server name or IP goes here")
    Client.setRemoteUser("Login Username goes here")
    Client.setRemotePass("Login Password goes here")
    Client.login()
    Client.setBinaryMode(True)    'Setsupload mode to binary

    Some methods available (Intellisense helps with this stuff below)
    .chdir               'Changes directory
    .mkdir              'Creates a directory
    .upload            'Uploads a file, make sure to use the *full* path
    .renameRemoteFile
    .close()            'Closes the connection


    There's also methods for deleting and moving and other stuff

    If you'd like it, just email me (my username @ my username . com) and I can shoot you over the assembly....  (just a forewarning, i think gmail will block the email even though its inside a zip since is a dll file, so provide a non-gmail addy)

    "If you make it idiot proof, they'll build a better idiot"
Page 1 of 1 (7 items)
Microsoft Communities
Page view counter