SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict
    Join Date
    Nov 2005
    Posts
    396
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Increase the timeout value passed to the call to Request or increase the SendTimeout

    Hi guys, I already configure my app.config to increase the timeout of my wcf during testing.
    Here's the code below
    Code:
    <bindings>
          <wsHttpBinding>
            <binding name="updatestocks" sendTimeout ="00:20:00" bypassProxyOnLocal="true" allowCookies="false"
                     hostNameComparisonMode="Exact" useDefaultWebProxy ="true" transactionFlow="true">
              <reliableSession  enabled="false"/>
              <security mode ="None" />
            </binding>
          </wsHttpBinding>
    </bindings>
    However, error still exists

    Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service.
    Can anyone help me...I already a search for solution on the web, but sill error exists.

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,823
    Mentioned
    142 Post(s)
    Tagged
    0 Thread(s)
    The first thing I usually do with WCF issues is turn on diagnostic tracing

    That will create a log that you can look through using SvcTraceViewer. Fromt he looks of it, you are not getting a timed out exception, but rather a missed-match binding or contract error

  3. #3
    SitePoint Addict
    Join Date
    Nov 2005
    Posts
    396
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use the svctraceviewer and some of the results were

    Process action 'http://schemas.xmlsoap.org/ws/2004/09/transfer/Get'.
    Process action 'http://schemas.xmlsoap.org/ws/2004/09/transfer/Get'.
    Process action 'http://tempuri.org/IService/insertRecord'.

  4. #4
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,823
    Mentioned
    142 Post(s)
    Tagged
    0 Thread(s)
    Didn't see anything that said Error or Exception?

  5. #5
    SitePoint Addict
    Join Date
    Nov 2005
    Posts
    396
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems that it has nothing to do with timeout settings in my app.config, instead with the execution timeout. The other methods completely invoke during testing using WCF client testing, whereas the remaining method does not completely invoked and it will display "Increase the timeout value passed to the call to Request or increase the SendTimeout", this is because, it retrieves a huge amount of data. Is there's a way to modify the execution time of WCF test client?

  6. #6
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,823
    Mentioned
    142 Post(s)
    Tagged
    0 Thread(s)
    Let me think about that, as I don't know of any off the top of my head, and I happen to be out of town this weekend so my access to a machine with the necessary tools to play around with it is unavailable. Maybe someone else will have an idea until I can respond back.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •