08-15-2013, 12:11 PM
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:
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: -->
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")
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: -->