I'm running into an issue with GetListing from a Java/Unix based FTP server (but it actually runs on top of a Windows server)
The connection and changing directory, and printing out the current working folder works fine. However, the GetListing reports invalid path.
I'm able to do a listing and retrieve files with other tools just fine. (FileZilla, Directory Opus, and Rebex's trial FTP library), so I'm comfortable the location / path is accurate.
Here is the code that throws the error, and below is the debug output.
string baseFolder = "Alfresco/Sites";
using (FtpClient conn = new FtpClient())
conn.Host = "192.168.2.192";
conn.Credentials = new NetworkCredential("name", "password");
FtpListItem items = conn.GetListing();
catch (Exception ex)
2015-05-09 23:18:47,877  DEBUG ftpClientTest.Program [(null)] - Connecting
220 FTP server ready
331 User name okay, need password for bill.swartz
230 User logged in, proceed
Text encoding: System.Text.UTF8Encoding
OPTS UTF8 ON
200 OPTS UTF8 ON
2015-05-09 23:19:08,800  DEBUG ftpClientTest.Program [(null)] - Connection Successful
2015-05-09 23:19:08,800  DEBUG ftpClientTest.Program [(null)] - AutoPassive
215 UNIX Type: Java FTP Server
2015-05-09 23:19:08,847  DEBUG ftpClientTest.Program [(null)] - UNIX Type: Java FTP Server
250 Requested file action OK
2015-05-09 23:19:08,911  DEBUG ftpClientTest.Program [(null)] - WorkingDirectory: /Alfresco/Sites
200 Command OK
229 Entering Extended Passive Mode (|||59709|)
500 Invalid path
2015-05-09 23:19:09,083  ERROR ftpClientTest.Program [(null)] - Invalid path
Disposing FtpClient object...
I've read other posts and your comments that MLSD on Unix boxes are unreliable, but just wanted to share that I can do the work with other tools, so there must be something different in your code base. Any thoughts, or how could I further debug?