Hi, i have been trying to solve this for hours with no luck.
i seem to be missing something fundamental.
i have a remote FTP server with a file called log.txt on it, i wish to allow web users to download this file to their local drive to a designated folder.
i have a function calling this sub i found on the web with the filename to download.when trying to run this code i get this error:
" Could not find a part of the path 'C:\temp\FtpDownloadsFolder\log.txt'. "
Public Sub Download(ByVal file As String)
Const host As String = "ftp://ftp.xxx.com/"
'Create a request
Dim URI1 As String = host & file
Dim downloadRequest As FtpWebRequest = DirectCast(WebRequest.Create(URI1), FtpWebRequest)
downloadRequest.Credentials = New NetworkCredential("username", "password")
downloadRequest.Method = WebRequestMethod ...
Go to the complete details ...