[CLOSED] Ajax request times out

  1. #1

    [CLOSED] Ajax request times out

    Hi I am using the restful service in my application . In one of my ASP.Net pages, I am calling this service method using ajax proxy and this times out.

    It is wierd because all of the other pages work fine where they call the same service and there is no timeout.

    Only this page times out and gives "Request failure. Communication error.

    Can you pls explain what could be the reason?

    And I am sure that the service method call is simple and follows same pattern in other pages. Also the method is simple. Just returns some json data.

    Thanks,
    Veda
    Last edited by Daniil; Mar 19, 2014 at 8:48 AM. Reason: [CLOSED]
  2. #2
    Try to increase the Timeout on the DirectEvent or DirectMethod configuration.

    You might also need to override the default ASP.NET Request Timeout, which can be done in the Web.config.

    When you debug the Request, where is the delay happening? on the server in the service method?
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    Try to increase the Timeout on the DirectEvent or DirectMethod configuration.

    You might also need to override the default ASP.NET Request Timeout, which can be done in the Web.config.

    When you debug the Request, where is the delay happening? on the server in the service method?
    Hey geoffrey,

    yes, The delay happens in the service side due to which the response rendered is delayed.

    And Yes, I did increase the time out in web config and in the ajax proxy request it works fine.



    btw, what could be the reason that this is happening suddenly ? Is it something to do with ajax requests specifically?
  4. #4
    Quote Originally Posted by Sowjanya View Post
    btw, what could be the reason that this is happening suddenly ? Is it something to do with ajax requests specifically?
    Hard to say.

    Could you answer this question?
    Quote Originally Posted by geoffrey.mcgill View Post
    When you debug the Request, where is the delay happening? on the server in the service method?
    It is wierd because all of the other pages work fine where they call the same service and there is no timeout.
    How do you call the service from other pages where no timeout issue?

Similar Threads

  1. Replies: 1
    Last Post: Jul 30, 2013, 3:36 PM
  2. Operation Requires an Ajax Request
    By dan182 in forum 1.x Help
    Replies: 1
    Last Post: Feb 23, 2011, 12:58 PM
  3. This operation requires an Ajax request
    By dan182 in forum 1.x Help
    Replies: 0
    Last Post: Feb 03, 2011, 10:34 AM
  4. Non JSON ajax request
    By craig2005 in forum 1.x Help
    Replies: 0
    Last Post: Dec 31, 2010, 6:08 PM
  5. Page_ Ajax Load Complete BUG on Ajax Request
    By jeybonnet in forum 1.x Help
    Replies: 8
    Last Post: Jun 22, 2009, 11:19 AM

Posting Permissions