Unable To Parse Server Response To PWD Command

0
Hello, When we attempt to download a file from a certain FTP Server we are getting 'Unable To Parse Server Command To PWD Command' Any ideas on how to solve this? We can see the files just fine in the directory, but calling downloadfile causes the error?
ftp
 
asked 7/1/2021 9:59:17 PM
add a comment

2 Answers

0
Hi Dave, Please use this code to download a file [here is the link][1] [1]: https://doc.componentpro.com/ComponentPro-Ftp/ComponentPro-Net-Ftp-GetDownloadStreamAsync(System-String,System-IO-SeekOrigin,System-Int64,ComponentPro-ExtendedAsyncCompletedEventHandler{System1263
 
answered 7/9/2021 9:02:12 PM
add a comment
0
Hi Dave, Please check this link [FTP GetCurrentDirectory][1] [1]: https://doc.componentpro.com/ComponentPro-Ftp/ComponentPro-Net-Ftp-GetCurrentDirectory() Remarks The FTP server's current folder is used by the FTP server as the base folder from which to perform file operations such as obtaining folder contents, receiving, sending and deleting files, changing the current folder, etc. It can be changed using the SetCurrentDirectory method. The GetCurrentDirectory method will send the PWD command to the FTP server. **Some servers (eg. TOPS-20) do not support this method.**
 
answered 7/2/2021 12:28:46 AM
  Thank you. Still a little confused however as the error seems to occur when we call 'DownloadFile', so how can we get around that? Dave 7/9/2021 2:23:36 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged ftp or ask your own question.