Exception :: FTP Connection Timeout

A

Amar Gaikwad

Hi All,

I want to read the contents (only the filenames) from the ftp server.
The code which I have throws connection timeout exception :: "A
connection attempt failed because the connected party did not properly
respond after a period of time, or established connection failed
because connected host has failed to respond".

This code sometimes works properly and sometimes throws exception. So I
want the solution for the timeout exception (how should I increase the
time out time for any ftp connection using C# ).

Waiting for your fruitful response.

Thanking you.

- Amar Gaikwad.
 
K

Kevin Spencer

You have not described anything about how you're attempting to connect to an
FTP server, what class(es) you're using, etc. You have only described a user
experience. Therefore, no analysis can be made.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer

A watched clock never boils.
 
A

Amar Gaikwad

Thanks a lot Sloan ... I got the solution for my problem using the link
you provided.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top