Web Service Timeout During Silverlight Debugging

So, I am stepping over my code, and now I am starting the project again to go to another breakpoint. However, my project does not move, but it crashes, saying that I have exceeded the timeout limit for the web service.

How do I increase the timeout limit for web services so that I stop receiving these exceptions?

+4
source share
2 answers

You need to specify the attributes openTimeout , sendTimeout , receiveTimeout and closeTimeout of the <binding> element in Web.config and ServiceReferences.ClientConfig . > files.

For instance:

 <binding name="..." ... openTimeout="01:00:00" sendTimeout="01:00:00" receiveTimeout="01:00:00" closeTimeout="01:00:00"> <security mode="Transport" /> </binding> 

If this answers your question, please "mark it as an answer."

+7
source

I am catching a Silverlight exception, excluding a timeout, so I can continue debugging after the exception.

0
source

Source: https://habr.com/ru/post/1286374/


All Articles