Posted on: 3/18/2014 9:35:35 PM | Views : 2312

I got the same webpage to run with the exact code as below.  Error Code:
The requested URI is invalid for this FTP command. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The requested URI is invalid for this FTP command.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 'GraphingPlanets.exe - Get the object used to communicate with the server. Dim request As FtpWebRequest = DirectCast(WebRequest.Create("ftp://www.mysite.com/"), FtpWebRequest) request.Method = WebRequestMethods.Ftp.DownloadFile ' This example assumes the FTP site uses anonymous logon. request.Credentials = New NetworkCredential( ...

Go to the complete details ...