Page 1 of 1

Timeout when deleting categories with a lot of items

Posted: Mon Apr 20, 2009 1:32 pm
by bigbangtech
In 7.02, when we try to delete a category with dozens of subcategories and 100's of items , it times out, and we get a popup stating:

Sys.WebForms.PageRequestManagerTimeoutException: The server request time out

Is this SQL timing out, or something in the Admin code? What can we change to increase the timeout to say 5-10 minutes?

Re: Timeout when deleting categories with a lot of items

Posted: Tue Apr 21, 2009 8:57 am
by mazhar
That could be due to ASPX page request time out. If process takes too long and don't return response to page in desired time it can time out but your categories will be deleted from database. I think its something configurable via IIS for application.

Re: Timeout when deleting categories with a lot of items

Posted: Mon Jul 06, 2009 8:34 am
by mfreeze
I am getting this both deleting large categories and on abandoned baskets report. I googled the message and found that this is a script postback timeout error.

The method to fix it is
To solve this problem we can increase the timeout. You can change the timeout time by adding a new property to the script manager control. This property is called AsyncPostBackTimeOut and it can help us to define the number of seconds before the request will throw a request timeout exception*.

For example if you want that the timeout will take maximum 10 minutes your code should be look like this:

<asp:ScriptManager ID="ScriptManager1" runat="server"

AsyncPostBackTimeOut="600" >

</asp:ScriptManager>

The default value of the AsyncPostBackTimeOut property is 90 seconds
The problem is that I haven't found where to put the code in Able Commerce. Does anybody know where this would need to be inserted?

Re: Timeout when deleting categories with a lot of items

Posted: Mon Jul 06, 2009 9:10 am
by mazhar
I think you need to adjust it in master pages under layout directory.

Re: Timeout when deleting categories with a lot of items

Posted: Mon Jul 06, 2009 2:01 pm
by mfreeze
Thanks, that worked. It had to go into admin.master in the admin folder.

Re: Timeout when deleting categories with a lot of items

Posted: Tue Jul 07, 2009 9:30 am
by Logan Rhodehamel
Posted as bug 8186 to increase our default timeout to 600 out of the box.

Re: Timeout when deleting categories with a lot of items

Posted: Fri Jul 31, 2009 2:36 pm
by triplw
Mary,
Could you tell me exactly where in the ~/Admin/admin.master file you should put this code. I put it in the body and got an error.

Thanks

Re: Timeout when deleting categories with a lot of items

Posted: Mon Aug 03, 2009 7:38 am
by mfreeze
Find this line: (around line 45) and change the AsyncPostBackTimeout parameter to the number you desire. I made it a ridiculous number due to the size of some of my clients order tables but you should choose a number that works for you.
<ajax:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" AsyncPostBackTimeout="100000" />