Web Method TimeOut

Discussion in 'ASP .Net Web Services' started by Lucas Ponzo, Nov 8, 2006.

  1. Lucas Ponzo

    Lucas Ponzo Guest

    How to determine the time out for a web method ? Can I configure it for the
    overall WebService ?

    It's because some tasks are long runing operations.

    Another situation is when debugging a web method. In the mean time, the
    client thrown an Operarion Timeout Exception.

    --
    Lucas Ponzo
    ..NET Solutions Architect/Engineer
    Override Software
     
    Lucas Ponzo, Nov 8, 2006
    #1
    1. Advertising

  2. Hello Lucas,

    As for the webservice, is it an ASP.NET asmx webservice? If so, when you
    consuming the webservice in .net client application, there has two
    setttings that will affect the webservice call timeout behavior:

    ** The ASP.NET webservice's server-side httpruntime timeout setting, this
    is configured through the following element:

    #httpRuntime Element (ASP.NET Settings Schema)
    http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

    <configuration>
    <system.web>
    <httpRuntime .............
    executionTimeout="45"
    .............../>
    </system.web>
    </configuration>

    Also, make sure that you've set the <compilation debug="false" /> so as to
    make the timeout work correctly.


    ** If you're using the wsdl.exe or VS IDE "add webreference" generated
    proxy to call webservice methods, there is also a timeout setting on the
    client proxy class(derived from SoapHttpClientProtocol class). This is the
    "Timeout" property derived from "WebClientProtocol" class:

    #WebClientProtocol.Timeout Property
    http://msdn2.microsoft.com/en-us/library/system.web.services.protocols.webcl
    ientprotocol.timeout.aspx

    Therefore, you can consider adjusting these two values according to your
    application's scenario. Here is a former thread also mentioned this:


    http://groups.google.com/group/microsoft.public.dotnet.framework.webservices
    /browse_thread/thread/73548848d0544bc9/bbf6737586ca3901

    Hope this helps.

    Sincerely,

    Steven Cheng

    Microsoft MSDN Online Support Lead



    ==================================================

    Get notification to my posts through email? Please refer to
    http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
    ications.



    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at
    http://msdn.microsoft.com/subscriptions/support/default.aspx.

    ==================================================



    This posting is provided "AS IS" with no warranties, and confers no rights.
     
    Steven Cheng[MSFT], Nov 8, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Do
    Replies:
    2
    Views:
    6,387
  2. Replies:
    0
    Views:
    448
  3. Replies:
    1
    Views:
    6,298
  4. Mark Probert

    Timeout::timeout and Socket timeout

    Mark Probert, Oct 6, 2004, in forum: Ruby
    Replies:
    1
    Views:
    1,298
    Brian Candler
    Oct 6, 2004
  5. Replies:
    0
    Views:
    167
Loading...

Share This Page