This is a migrated thread and some comments may be shown as answers.

Http timeout, catch cleint side error

1 Answer 98 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Osmon
Top achievements
Rank 1
Osmon asked on 08 Oct 2010, 02:47 PM
Hi,
      I have 2 issues as follows:

The timeout for Ajax is not long enough so i want to increase the ajax timeout. I do have the config in web.config. I do not know that it actually works. My waiting time could be from 15--30 min.

<httpRuntime executionTimeout="900" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />


Also, as the timeout finishes. The page now has the Javascript error and show the error message at the bottom of IE. So, is there any way i can handle those error and do some custom handling instead of passing it to the user.

Let me know the details. Thanks,

Regards,

Osman

1 Answer, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 08 Oct 2010, 03:17 PM
Hello Osmon,

If your waiting is between 15-30 min, why is your executionTimeout set to 15min, instead of 30? Also, to handle the error returned during the ajax request, this is the link it gives in the telerik help documentation.

http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.asyncpostbackerror.aspx

It handles the ScriptManager's error event.

I hope that helps.
Tags
Ajax
Asked by
Osmon
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or