I have a WPF application that communicates with several FTP servers. The application downloads files from the FTP servers at some fixed interval.
The file transfer process looks like this:
- Connect to a FTP server
- Download files
- Disconnect from the FTP server
To communicate with the FTP servers, my app is using the FtpWebRequest
class.
Occasionally, there is a weird communication problem, when I send PWD or LIST commands, I get an exception ("The operation has timed out").
The only resolution for this problem is to restart the application.
I have tried using different
FtpWebRequest
configurations, but the situation did not improve.
What else should I try to resolve this issue?