It's a bit hard to say without seeing your code. Could you please post the relevant portions? Please enclose your code snippets in
...
.
- Hans (EnterpriseDT)
I'm using Visual Studio 2005
When you click on the FTPConnection icon at the bottom there is what i've got set:-
LocalDirectory =
NullPassword = MyFTPpassword
serveraddress = ftp.hobbit-hosting.com
ServerDirectory = public_html/ftptest
ServerPort = 21
Username = MyFTPusername
Here is the VB Code
Imports System
Imports System.Windows.Forms
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
' Clear the list-box
FilesListBox.Items.Clear()
' Connect, get files and close
FtpConnection1.Connect()
FilesListBox.Items.AddRange(FtpConnection1.GetFiles())
FtpConnection1.Close()
Catch ex As Exception
If FtpConnection1.IsConnected Then
FtpConnection1.Close()
End If
MessageBox.Show(Me, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
End Class