Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out

4 posts, 0 answers
  1. IBEE
    IBEE avatar
    4 posts
    Member since:
    Aug 2005

    Posted 11 Oct 2010 Link to this post

    Good morning !

    We are using a treeview for our Web Application.

    This treeview is created from SQL requests.
    On first load, I only load "visible" nodes (treeview is not expanded by default).

    For example I load 3500 nodes (objects). And when the user expands a node, I call a new SQL request in order to display childs...
    The matter is that sometimes, SQL request are a little important, and after around 1 minute the treeview timeout !

    I have this error : Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.

    Here is the definition of the treeview :
    <telerik:RadTreeView ID="radTreeView" runat="server" CheckBoxes="True" CheckChildNodes="True"
                                    Height="200px" MultipleSelect="True" OnNodeCheck="radTreeView_NodeCheck" OnNodeExpand="radTreeView_NodeExpand"
                                    OnPreRender="radTreeView_PreRender" Skin="WebBlue" TriStateCheckBoxes="True" OnNodeClick="radTreeView_NodeClick"
                                    Width="100%" meta:resourcekey="radTreeViewResource1">

    Can you please tell me how to avoid this timeout ?

    Thanks and have a good day
  2. Kalina
    Kalina avatar
    918 posts

    Posted 14 Oct 2010 Link to this post

    Hi Ibee,

    Retrieving a large amount of data to populate a control has always been a tricky task.

    The Sys.WebForms.PageRequestManagerTimeoutException is usually raised by the PageRequestManager class to return an error when an asynchronous postback has exceeded the specified time for processing.

    You can optimize the RadTreeView performance using this online help article.
    Additionally I can suggest you set the AsyncPostBackTimeout property of the script manager that you use to higher than the default value (the default value is 90 seconds) - please take a look at this MSDN article.
    I hope this helps.

    All the best,
    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
  3. DevCraft R3 2016 release webinar banner
  4. IBEE
    IBEE avatar
    4 posts
    Member since:
    Aug 2005

    Posted 18 Oct 2010 Link to this post

    Ok thanks for the help !

    I modified AsyncPostBackTimeout  of the script manager and so that I can now control this timeout...

    And I am going to have a look to the optimizations of RadTreeView.

  5. Sunil
    Sunil avatar
    1 posts
    Member since:
    Dec 2013

    Posted 02 Dec 2013 Link to this post

    ScriptManager.GetCurrent(this).AsyncPostBackTimeout = 400;
    This is worked.
    In my case, am binding data to grid view(ASP .NET), it is very slow can u please suggest to increase the performance.

Back to Top