I am trying to download a selected FTP file from an FTP site in ASP.Net and VB.Net.
Earlier I was having problems that the box wasnt registering my selection being made, but now it is.
However, when I go to download the file I get an error message that says:
'The requested URI is invalid for this FTP command.'
It is pointing to the following code:
Dim ftpResponse As FtpWebResponse = ftp.GetResponse()
I have set up the FTP Request as thus:
Dim ftp As FtpWebRequest = DirectCast(FtpWebRequest.Create("ftp://xx.xx.x.xx/In/"), FtpWebRequest)
Is it saying that the URL for the ftp site I am providing is incorrect?
Or does this mean something else?
Thanks in advance.