473,461 Members | 1,433 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Timeout waiting for an answer in TCPClient

QDL
Hello everyone,

I have an ASPNET app which connects using a TCPClient to a Windows Service
and exchanges some data. I have installed this app many times on different
production boxes without problems.

On one particular Windows 2003, the ASPNET app gives me this error (actually
it is logged on a personal text log file):

"System.IO.IOException: Unable to read data from the transport
connection. ---System.Net.Sockets.SocketException: 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 happens after the connection has been established. (Client.connect)

The app still works because I have put up a loop which retries after waiting
half a sec. But they (users) complain it is to slow (15-20 seconds after
click). I tried increasing RXTimeout but to no avail.

The very same routines work ok if called from a WindowsForms app, so the
problem must be in ASPNET or, better IIS... Users say it started to have
this problem since a couple of months, without anyone installing anything...
Very, very weird.

I do not have access to the 2003 box, but I think it might miss latest
patches or even be without SP1...

Thanx in advance
Paolo
Dec 13 '06 #1
0 1032

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Burns | last post by:
Hi, I'm writing some code that talks to a POP3 server with a TcpClient. I can send and receive using a NetworkStream, but when I send my message, then try to recieve, no response has returned. ...
2
by: Dan Pavel | last post by:
Hi, I am kind of new in programming and I have a problem. I am getting some values through SNMP and when I don't get an answer from remote host, my refresh function keeps waiting. I cannot modify...
2
by: Danny Tuppeny | last post by:
Hi all, I'm using a TcpClient to talk to a newserver. If I don't send any data for a while, will the connection timeout, or does something in the TcpClient keep it alive? If not, and it times...
3
by: Peter Stojkovic | last post by:
I have an TcpClient. System.Net.Sockets.TcpClient Everything is working fine. But when the IP-Address is wrong, I DON'T want wait 20seconds for timeout ( seems to be standard ) Is there any...
3
by: Kevin | last post by:
Hi How can i decrease the timeout on Socket.Connect?? Thanks =)
1
by: Steve | last post by:
I have a bit of "login authentication" code that in the event of a server error, connection error, etc will take a Looooooong time to timeout. I wanted to redesign it to call the DAL method in a...
4
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I am wondering if I am using TCPClient class in C#, how to setup timeout value? Timeout I mean, when connects to server for the 1st time, and during <timeoutinterval, if no...
10
by: Zytan | last post by:
I have a TcpClient. I set the read/write timeouts at 1 minute (in milliseconds). I get a NetworkStream from it and confirm the timeouts still exist. I do a NetworkStream.Write() and then a...
2
by: Zytan | last post by:
I just had the problem occur again, with NetworkStream.Write() doing its thing with a timeout... and it just sits and waits and waits and waits... it never times outs. So, I shut the server down...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.