Ok This is weird I know I have aministrative right and this should not be happening. I try to download a file from the remote server to my PC and I get an access denied error. It must be something in the download sub procedure I will post it here. I f you see something incorrect could you please let me know.
Try
eFTPConnection = New FTPConnection
'Get the selected item(s) from the FTP server if any
If lvFiles.SelectedItems.Count > 0 Then
'Use folder browser to select the download directory
Dim fb As New FolderBrowserDialog
fb.ShowDialog()
'Ensure that the selected path is not null
If Not fb.SelectedPath Is Nothing Then
DirListBox1.Path = fb.SelectedPath
FileListBox1.Path = DirListBox1.Path
Dim lvItem As ListViewItem
For Each lvItem In lvFiles.SelectedItems
'Set the variables for downloading
RemoteFile = lvItem.Text
LocalPath = fb.SelectedPath
ConnectToServer()
eFTPConnection.DownloadFile(LocalPath, RemoteFile)
ProgressBar1.Maximum = CInt(eFTPConnection.TransferBufferSize)
'Loop while transferring and pass the value to the progressbar
Do While eFTPConnection.IsTransferring
ProgressBar1.Value = CInt(eftpTransferBytes.ByteCount)
Loop
Next
End If
End If
eFTPConnection.Close()
Catch ex As Exception
txtResponse.Text = vbCrLf & ex.Message
End Try
I get the following error message
txtResponse.text = Access denied C:\.......\.....