473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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 5440

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Adrian Casey | last post by:
I have a python script which uses pexpect and I want to timeout (i.e. raise pexpect.TIMEOUT) if a long running command does not produce the output I am expecting. To simulate the 'long running...
7
by: Dan Bass | last post by:
In a somewhat complex application, I've developed plug-in architecture and am having a problem as to when to catch general exceptions for logging purposes. In each plug-in class library, for...
3
by: Jason | last post by:
I'm having a hard time getting a call to HttpWebRequest's GetRequestSteam to work. Each time I try to run it, I get the following error: The underlying connection was closed: Unable to...
9
by: pmcguire | last post by:
I have a vb.NET solution with a Windows Application project that contains my user interface and a Class Library project that contains (among other things) a class I call DataAccessComponent. This...
3
by: Rahul Anand | last post by:
As per our requirements we have a web service which internally connects (Simple HTTP Post Request) to a remote server to initiate some work. We are calling the web service method asynchronously...
0
by: Mahesh Devjibhai Dhola | last post by:
Hi, I am getting the following exception when using webservice.. "The underlying connection was closed: An unexpected error occurred on a receive" I am not getting any innerexception so no clue...
6
by: si_owen | last post by:
Hi Guys, I am running visual studio 2005 with asp.net v2. I am calling records back from a database over a time period. The application works great over a time period of less than 2 months,...
1
by: ramneekm | last post by:
hi all, i am working on a asp.net web app and using ado.net 's SqlClient Data Provider to connect to sqlserver 2005. I am getting the exception "Timeout expired. The timeout period elapsed...
2
by: senglory | last post by:
My WCF: public interface IWorkbookService { DataTable GetDownpayments(KeyValuePair<int, string> sgm); } class WorkbookService : IWorkbookService
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.