When I had to use the ftp method, I had to set some flags on the request object, without which the function did not work:
FtpWebRequest request = (FtpWebRequest)WebRequest.Create(ftpPath); request.KeepAlive = true/false; request.UsePassive = true/false; request.UseBinary = xxx;
These flags are server dependent, if you do not have access to the server, then you may not know what to use here, but you can check and see what works in your configuration.
And the file name is probably missing at the end of the URI, so the server knows where to save the downloaded file.
source share