Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am calling web service in my windows phone 8 application.Its working fine but some times it gets to receive data I get this timeout exception.(due to slow network or some other proble).so this time my application is not handled and it give =exception like bellow.

An exception of type 'System.TimeoutException' occurred in System.ServiceModel.ni.dll but was not handled in user code

How can i handle this exception. no idea what to do.

share|improve this question
Could you maybe post a little more... This is like say "My car usualy drives but sometimes it doesn't" – Ivan Crojach Karačić 10 hours ago
@IvanCrojachKaračić:see my edited question – MansinhDodiya 9 hours ago
you can take your methods which calls web services inside of a try-catch block and catch the TimeoutException()? isn't that sufficient? – Beytan Kurt 9 hours ago
@BeytanKurt:thanks for replying but its not working my catch not handle this exception – MansinhDodiya 9 hours ago
1  
Could you please add a short code snippet of how you call the service where you take the timeout. – Beytan Kurt 7 hours ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.