PDA

View Full Version : [CLOSED] Ajax request times out



Sowjanya
Mar 12, 2014, 12:36 AM
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

geoffrey.mcgill
Mar 12, 2014, 12:40 AM
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?

Sowjanya
Mar 12, 2014, 3:17 AM
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?

Daniil
Mar 12, 2014, 5:08 AM
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?


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?