Click here to Skip to main content
15,909,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
IOException was unhandeled
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 failed to respond >
how i can solve this is problem
in c#
Posted

1 solution

why don't you wrap your connection handler code in a try/catch block (or a 'using' ....) - when you catch the exception you can then determine what action to take based on data the in the thrown exception - eg, retry ..

What happens if you try and ping the end-point for the connection ? maybe you can use a ping (you'd still need to trap an exception) to see if the end-point is 'alive' before you connect

'g'
 
Share this answer
 

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