This project is read-only.
1
Vote

Get Error - Handle is Invalid while Getting Directory list

description

I am getting error - 'handle is invalid' - while getting List of Directories using GetDirectories(string mask) method. this error i do not get in regular manner but in random manner.
 
How to fix it??

comments

Seraphimmmm wrote Apr 23, 2014 at 4:14 AM

hi ,

try this:
        using (FtpConnection ftp = new FtpConnection(@"ftp://192.168.1.100"))
change to
        using (FtpConnection ftp = new FtpConnection(@"192.168.1.100"))