System.TimeoutException
I'm using winscp 5.17
and using with C#.net like below
When I'm using with large number of files it gives me an error like this. This not happens for every time.
Still couldn't find any solution for this as this happening for large number of files
and using with C#.net like below
SessionOptions sessionOptions = new SessionOptions { Protocol = Protocol.Sftp, HostName = Settings.ftphost, UserName = Settings.ftp_username, Password = Settings.ftp_password, SshHostKeyFingerprint = Settings.SshHostKeyFingerprint, PortNumber = int.Parse(Settings.ftp_port) }; using (Session session = new Session()) { session.Open(sessionOptions); if(session.FileExists(remotePath)) { session.RemoveFiles(remotePath); } if (session.Opened == true) session.Close(); }
When I'm using with large number of files it gives me an error like this. This not happens for every time.
System.TimeoutException: Timeout waiting for WinSCP to respond - WinSCP has not responded in time. There was no output. Response log file C:\abc.tmp was not created. This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.
at WinSCP.Session.CheckForTimeout(String additional)
at WinSCP.Session.Open(SessionOptions sessionOptions)
Still couldn't find any solution for this as this happening for large number of files