Results 1 to 6 of 6

Thread: Updating useing a FTP server..

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2010
    Posts
    95

    Updating useing a FTP server..

    Does anyone know how to do it? Or can give me some Tutorials?
    Please and Thankyou.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Updating useing a FTP server..

    For basic uploading and downloading you can use the WebClient class and its DownloadFile and UploadFile methods. Alternatively, you can use the DownloadFile and UploadFile methods of the My.Computer.Network object.

    If you need finer control then you'd use the FtpWebRequest class. I would suggest starting by reading the documentation for that class, and probably the companion FtpWebResponse class, and then searching the web for examples if you need them.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2010
    Posts
    95

    Re: Updating useing a FTP server..

    Do you know of any guides Jmcil? I've got no idea when it comes to that.

    Also, i want it to update when I upload the newest revision, I'm not sure how to get the program to realize that there is a new revision, and recognize that it must be downloaded.
    Ideas?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Updating useing a FTP server..

    This is a fine example of why you should be providing a full and clear description of your problem up front. I'm now getting the feeling that you want to provide functionality in your app to update itself from an FTP site, but that was far from clear from your first post. All you said was "updating" with no indication of what was actually being updated.

    I would suggest that, unless you have a specific reason not to, you should stick to auto-update functionality built into the Framework, i.e. ClickOnce. It's simply a matter of setting a few properties and publishing your project. Again, you should start by reading the documentation on ClickOnce and searching the web for examples.

    Creating your own auto-update functionality is certainly possible but far from trivial.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2010
    Posts
    95

    Re: Updating useing a FTP server..

    Jmcil, I'm trying that, but every time i try to publish i get the same error..

    "Error 1 Failed to connect to 'ftp://ftp.xtreemhost.com/' with the following error: Unable to create the Web site 'ftp://ftp.xtreemhost.com/'. The components for communicating with FrontPage Server Extensions are not installed. 1 1 RTExchangeHelper"

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Updating useing a FTP server..

    Again, that's important information that you should be posting upfront. The first thing you should do is Google that error message.

    http://www.google.com.au/search?q=Th...ient=firefox-a
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width