Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I going to do the list box to show all my files in the ftp server so that the user can select the files and download it. After i typed my ftp server ip address " in the textbox then clicked the button for display all files listed in the ftp. It shows the messages invalid url : the hostname cannot be parsed. But, I can view all my files in the web browser by typing the correct ftp address. By the way, I am using the ftpclient.dll for the references from Please help me to solve the problems or figure out other ways to doing it. Thanks for your helps.

What I have tried:

Public Class FileSharingForm
Private FTPDownloader As New Utilities.FTP.FTPclient

Private Sub FileSharingForm_Load(sender As Object, e As EventArgs) Handles     MyBase.Load
btnChangeDirectory.Enabled = False
FTPDownloader.Hostname = txtServer.Text.Trim
FTPDownloader.Username = txtUsername.Text
FTPDownloader.Password = txtPassword.Text

End Sub

Private Sub btnHomeDirectory_Click(sender As Object, e As EventArgs) Handles      btnHomeDirectory.Click
FTPDownloader.CurrentDirectory = /;
End Sub

Private Sub RefreshList()
For Each file In FTPDownloader.ListDirectoryDetail()
Catch ex As Exception
End Try
End Sub

End Class
Updated 28-Dec-16 21:47pm

1 solution

You should post your question in the forum at the end of the article so the author of the code sees it.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900