468,720 Members | 1,559 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,720 developers. It's quick & easy.

Exception :: FTP Connection Timeout

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.

Sep 21 '06 #1
3 5233

If you're using 1.1, then go here:

http://www.codeproject.com/cs/internet/ftplib.asp

and get that library.

It'll save you a bunch of time in development.


"Amar Gaikwad" <av*******@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
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.

Sep 21 '06 #2
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.

"Amar Gaikwad" <av*******@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
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.

Sep 21 '06 #3
Thanks a lot Sloan ... I got the solution for my problem using the link
you provided.

sloan wrote:
If you're using 1.1, then go here:

http://www.codeproject.com/cs/internet/ftplib.asp

and get that library.

It'll save you a bunch of time in development.


"Amar Gaikwad" <av*******@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
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.
Sep 22 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Adrian Casey | last post: by
7 posts views Thread by Dan Bass | last post: by
9 posts views Thread by pmcguire | last post: by
6 posts views Thread by si_owen | last post: by
9 posts views Thread by bryonone | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.