Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Downloading from FTP server doesn't work
#4
I discovered what caused the exception accidently while playing with the code.

The truth is that the library works perfect but it was my own mistake. I got an error that says the file wasn't found so I checked my server and saw that the file was stored correctly and with the required permissions. What the actuall mistake was, was a wrong path to the file (the path that I had to enter myself in order to download the file).

This was my mistake:
Code:
Dim ftpDownloader As New FTPClient.Utilities.FTP.FTPclient("host", "username", "password")
        ftpDownloader.Download("/public_html/Current_NewVersion.txt", "C:\test_file.txt", True)
        MsgBox("succes")
As you can see the path I entered contains /public_html and this is simply not necessary.

That was the error I was trying to fix for days... <!-- s:twisted: --><img src="{SMILIES_PATH}/icon_twisted.gif" alt=":twisted:" title="Twisted Evil" /><!-- s:twisted: -->


Messages In This Thread
Re: Downloading from FTP server doesn't work - by brco900033 - 08-15-2013, 12:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  multiple csv files add sql server tables via VB.NET secilsengul 1 9,980 04-16-2014, 10:27 AM
Last Post: brco900033
  How can I get the server status??? mnxford 5 23,732 03-27-2013, 10:53 AM
Last Post: mnxford
  Is this possible with SQL Server? Worf 2 12,338 02-25-2013, 03:04 AM
Last Post: Worf
  Sockets Programming(Disconnecting from Server) xolara 1 9,439 04-06-2012, 01:47 PM
Last Post: brandonio21
  Why dusn't this code Work? Aaron Rogers118 3 13,981 02-21-2012, 03:04 PM
Last Post: Aaron Rogers118

Forum Jump:


Users browsing this thread: 1 Guest(s)