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

Loading Panel JScript Timeout

3 Answers 496 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 26 Apr 2010, 09:03 PM
Hi:

I have a long running process that I placed a Loading Panel on the form, but if it take say 92 seconds, it throws the following exception:
  Microsoft JScript runtime error:
  Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.
How can I set the timeout?

Phil

3 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 27 Apr 2010, 09:02 AM
Hi Phil,

I suggest you to view the help topic on Error Handling For Ajax Requests on how handler the received error. Another option is to set the AsyncPostBackTimeout property of the ScriptManager to a larger value and see if it makes any difference:

<asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="5000" />

I hope that this solves your problem. Please contact us on any further issues.


Sincerely yours,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Phil
Top achievements
Rank 2
answered on 27 Apr 2010, 12:58 PM
Hi Maria:

I will try the ScriptManager solution, because I need to avoid the error not handled.  At the end of the timely processing, I need to launch a PDF window with merged reports.

Thanks Phil
P.S. It worked and the AsyncPostBackTimeout is in seconds, and default value is 90.
0
Rhonda
Top achievements
Rank 1
answered on 27 Apr 2011, 06:36 PM
If you set the value to 0, it will never timeout.
Tags
Ajax
Asked by
Phil
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Phil
Top achievements
Rank 2
Rhonda
Top achievements
Rank 1
Share this question
or