none
BasicHttpBinding Timeouts

    Question

  • According to http://msdn.microsoft.com/en-us/library/ms731361.aspx the default timeout for a web service receive is 10 minutes.

    The defaults are: Open 1:00, Send 1:00, Receive 10:00, Close 1:00

    These values are adequate but when I call my ASMX web service the process times out in about 60 seconds.

    This is problematic when I am debugging, but also in the production environment I have some email operations that take over a minute to complete so the thread times out.

    Therefore I am thinking that this is not the correct place to set the timeout for silverlight to wait for a web service to respond.

    I know that IE has a timeout value that is set via a registry entry, but my users will not be able to set this value, so I hope that is not where the problem lies.  See http://support.microsoft.com/kb/181050

    How can I increase the amount of time that my SL4 code waits for my web service to complete?

    Monday, May 07, 2012 9:20 AM

Answers

All replies

  • You can take a look at the web.config I ues for WCF services here:

    http://social.msdn.microsoft.com/Forums/en-US/silverlightarchieve/thread/0a611684-d592-403b-bce6-0a6a605b1cee/

    IIS has a default time out of 2 minutes.  You may also want to use Fiddler to watch what is happening with your service call.

     

    Monday, May 07, 2012 1:25 PM
  • I am already setting the values in my web.config.

    According to MS:

     Internet Explorer imposes a time-out limit for the server to return data. By default, the time-out limit is as follows:

    Collapse this tableExpand this table
    Internet Explorer 4.0 and Internet Explorer 4.01 5 minutes
    Internet Explorer 5.x and Internet Explorer 6.x 60 minutes
    Internet Explorer 7 and Internet Explorer 8 60 minutes

    I know why my web service is taking so long, so tracing is not the issue, I just want to increase the timeout.

    I thought in the past I had some code for uploading a file and in it I set a timeout value when I opened the connection to the server...as I reall that worked but I don't have that code anymore.

    Also, I seem to remember a timeout could be set on the webservice object in silverlight, but I don;t think that did work (to fix the timeout problem).


     

    Wednesday, May 09, 2012 9:42 AM
  • Is the 'timeout' occuring when you are trying to upload a flie to the service?  If that is the case you may need to up the httpRuntime - maxRequestLength:

    http://msdn.microsoft.com/en-us/library/e1f13641(v=vs.71).aspx

    Wednesday, May 09, 2012 10:46 AM