Click here to Skip to main content
13,300,625 members (51,000 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


5 bookmarked
Posted 13 Jan 2010

Solution of Error "PageRequestManagerTimeoutException" using DNN Framework

, 13 Jan 2010
Rate this:
Please Sign up or sign in to vote.
Solution of Error "PageRequestManagerTimeoutException" using DNN Framework


Recently, I encountered a weird problem. A method invoked a stored procedure that expends more than 90 seconds, and the button which invokes that method is inside an updatepanel. The error message is "SysWebForms.PageRequestManagerTimeoutException: The server request timed out."



After doing a search on the internet, I found it is caused by the property AsyncPostBackTimeout of ScriptManager. It has an integer value that represents the time-out in seconds. The default value of the AsyncPostBackTimeOut property is 90 seconds. But my procedure will last for 200 seconds.

Solution One

Most articles suggested adding the property-value likes "AsyncPostBackTimeout=360000" in the ASPX control.


<asp:ScriptManager ID= "ScriptManager1 " 

	AsyncPostBackTimeOut= "360000 " runat= "server " />

Solution Two

But recently I am using the DNN framework. If using "AJAX.RegisterScriptManager()", there shouldn't be any ScriptManager control that exists in the DNN module file. But we can get the current registered ScriptManager object and set the AsyncPostBackTimeout property, or use the SetScriptManagerProperty() method through the following steps.


if (AJAX.IsInstalled())
    ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
    scriptManager.AsyncPostBackTimeout = 360000;

OR: use the SetScriptManagerProperty method in DotNetNuke.Framework.AJAX class.


if (AJAX.IsInstalled())
    AJAX.SetScriptManagerProperty(this.Page, "AsyncPostBackTimeout", 
	new Object[] { 360000 });

Solution Three

Actually, we can hide this problem of "PageRequestManagerTimeoutException" by adding the below JavaScript. But it is not recommended.


function EndRequestHandler(sender, args)
  if (args.get_error() != undefined)
       else if(args.get_error().name === 
           // not this kind of error so let the default behavior happen.


  • 13th January, 2010: Initial post


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Leo Bi
Software Developer E5 Systems
China China
I am currently a Programmer/Analyst working at E5 Systems, and had been engaged in software outsourcing industry for two years. I have strong interest and passion in software architecture and web application security fields. I am proficient in Java and C#.

My Blog:

You may also be interested in...


Comments and Discussions

QuestionVery helpful after a long search Pin
Nallathambis2-Jun-16 0:47
memberNallathambis2-Jun-16 0:47 
GeneralVery helpful Pin
Entong Sofyanzyah15-Nov-15 19:38
memberEntong Sofyanzyah15-Nov-15 19:38 
QuestionSolución Directa Pin
Venegas.Michael12-Oct-15 10:04
memberVenegas.Michael12-Oct-15 10:04 
GeneralMy vote of 5 Pin
shustov8714-Aug-14 6:03
membershustov8714-Aug-14 6:03 
QuestionNice Solution Pin
Member 249822113-Sep-12 4:39
memberMember 249822113-Sep-12 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 13 Jan 2010
Article Copyright 2010 by Leo Bi
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid