Click here to Skip to main content
15,900,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have got this error while loading 1000 data's from database.

Error:Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out


How can i solve this?
Can anyone help me to solve this?
Posted

You can put
1. Command.Timeout property while initialization of the command.
2. TimeOut property in web.config under httpruntime tag.
 
Share this answer
 
Comments
thatraja 24-Dec-11 9:07am    
Right, 5!
 
Share this answer
 
Comments
thatraja 24-Dec-11 9:07am    
5!
RaviRanjanKr 24-Dec-11 9:46am    
Thanks Raja :)
Front end

How to troubleshoot HttpException Request timed out (ASP.NET 2.0)[^]
Troubleshooting Failed Requests Using Tracing in IIS 7[^]
Page Timeout in ASP.NET[^]

Back end

Increase value for Timeout of your SQL Connection & SQL Command

For Connection in Web.Config,
<add key="ConnectionString" value="server=(local); uid=sa; password=sa; database=master;Connection Timeout=30" />

For Command,
public void CreateSqlCommand()
{
   SqlCommand cmd = new SqlCommand();
   cmd.CommandTimeout = 15;
   cmd.CommandType = CommandType.Text;
}

& also take a look at the following page.
Troubleshooting: Timeout expired[^]

Free attachment
DBA’s Quick Guide to Timeouts[^]
 
Share this answer
 
Comments
Monjurul Habib 24-Dec-11 9:09am    
5!--no way to escape
thatraja 24-Dec-11 9:11am    
:D
RaviRanjanKr 24-Dec-11 9:47am    
Nice answer with nice links, Bookmarked! 5+
XML
<asp:ScriptManager ID="ScriptManager1" runat="server"
AsyncPostBackTimeOut="600" >
</asp:ScriptManager>



en lugar de 90 segundos coloca 600. para el Scriptmanager
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900