Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written a windows service for GPRS communication, The service is running properly normally, but in between, it enters into the catch block, and throws an exception as,

"Unable to read data from the transport connection: 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."

I have installed Network Monitor, and verify the current communication IP address too, but it shows the TCP Connection as a reason for connection out.

Kindly provide me a solution, " Unable to read data from the transport connection:"
Posted
Updated 23-Nov-11 19:31pm
v3

1 solution

This message indicates that the target system is not responding in a timely way. Since your service seems to work properly most of the time, the problem is likely to be found in the remote unit. Can you access error logs from that device?
 
Share this answer
 
Comments
Member 7744835 25-Nov-11 1:58am    
I get error log from the device, whenever the GRPS connection the forcibly disconnected, that time it throwing an exception as "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
while communication, if suppose we wait for 1 minute time interval, not get any response means, "Unable to read data from the transport connection: 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."
In this situation, we not disconnect the connection, the Socket has been opened in both side and waiting for response, but in between it disconnected.

while contact system administrator, usually TCP disconnection will be takes place in normal server. But it should affect the regular work it my point. What we want to take a step to fix this problem?

Kindly guide me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900