By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,054 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,054 IT Pros & Developers. It's quick & easy.

Exception :: FTP Connection Timeout

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a

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

P: n/a
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

P: n/a
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.