Share via


The status code returned from the server was: 12031

Question

Friday, July 6, 2007 5:08 PM

 Hi all,

I implemented updatepanel and a timer control in my web page.

And now in my web application, this error message occurs with "Sys.WebForms.PageRequestManagerServerErrorException: An unkown error occurred while processing the request on the server.  The status code returned from the server was: 12031"

Someone has an idea ?

 

 

All replies (13)

Wednesday, July 11, 2007 5:09 AM âś…Answered

Hi wesleymichel,

 I have copied your code into a blank project and it works quiet well. So we should focus on your C# code and System environment.Please first check your Asp.Net Ajax Extension and Ajax ControlToolkit (if been used) ' s version. Update to the latest.If not, you should check your settings such as web.config and your C# code.

By the way , based on the error description, it looks mostly like some setting errors.

 12031       ERROR_INTERNET_CONNECTION_RESET
               The connection with the server has been reset.

If your problem cannot been resolved , please share more code. If been resolved , sharing your work will be greatly appreciated.


Friday, July 6, 2007 6:33 PM

Would you pls post the codes.


Friday, July 6, 2007 9:31 PM

You can find the code below :

 

<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="listeMembreConnecteMessage.aspx.cs" Inherits="listeMembreConnecteMessage" %>
<html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"></head>
<body >
<form id="form1" runat="server">

<asp:ScriptManager runat="server" ID="ScriptManager1" AsyncPostBackTimeOut="36000" ></asp:ScriptManager>

<asp:Timer runat="server" Interval="70000" ID="TimerControlMessage" OnTick="tickerTimerMessage_Tick" /> <asp:UpdatePanel runat="server" ID="UpdatePanel2" UpdateMode="Conditional" >
<Triggers><asp:AsyncPostBackTrigger ControlID="TimerControlMessage" EventName="Tick" /></Triggers>
<ContentTemplate>
<asp:Label ID="LabelMessage" Runat="server" meta:resourcekey="LabelMessageResource1"></asp:Label><br />
</ContentTemplate>
</asp:UpdatePanel>

<asp:Timer runat="server" Interval="20000" ID="TimerControlMessageFlash" OnTick="tickerTimerMessageFlash_Tick" />
<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TimerControlMessageFlash" EventName="Tick" />
</Triggers>
<ContentTemplate>
<asp:Label ID="LabelMessageFlash" Runat="server" meta:resourcekey="LabelMessageFlashResource1"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>

</form> </body>
</html>


Thursday, July 12, 2007 12:48 AM

 

Hi,

  i have the same problem.When i launch my application in vs sourcafe 2005,i come accross with this problem.when i open a ajaxenabledweb site solution in my local machine and launch it with the same codes,this problem doesnt occur.i copied my project's web config  to anoter project(ajax enabled web site) which works,this problem doesnt occur too.i use latest Asp.Net ajax extension.Please help


Thursday, August 30, 2007 9:38 AM

 

Hi i have same problem in my website..

In my code some data is fatched from one table with randomly selected row and bind it with label on page ..i use ajax and timer control.i set tick value about 3 second.

so after every 3 second page is posted back and another randomly selected row is fatched and bind with label....binding data is about 2-3 lines means about 200 character..

but i dont get this error (12031) suddenly but after 20-30 minute .

 

so give me some suggestion about this.....Thanks

 

Hardik patel.


Sunday, October 7, 2007 11:37 PM

Hardik,

have you checked the size of the view state using fiddler or something like fiddler.

We have seen this error when attempting to make large posts, I am wondering if over time your view state is growing on each timer post back, and eventually it is getting too large for the servers request size limit.

Adam Rogas
Load Ltd


Monday, October 8, 2007 4:24 AM

hello.

is there any "live" simple page that reproduces the error? if so, what's the url so that we can load it and see if we can understand what's going on?


Tuesday, March 18, 2008 11:22 AM

I'm getting this same error code with a basic Update panel, Update Progress, CollapsiblePanelExtender and a Gridview on a single page.

The data is a little large and when the data comes back All I have to do is hit any control on the page (in this case a checkbox) and I get the popup

with error code 12031.

If anyone has a solution i'm all ears...

Dan Roberts

ChezAmour.Com

 


Monday, May 12, 2008 9:57 AM

So far it looks like a lot of people are encountering the same problem, but no one has a reasonable answer.  I too have encountered the problem (12031).  Let me give a little bit of backround:

I have a page with a few update panels and lot's of data.  The largest portion of data is approx 2500 rows.  The customer can configure the grid to display 10, 20, 50, 100, All rows.  My customer has insisted on the option of displaying all data.  If I test with displaying only 100 rows at a time, then I do not encounter the problem.

I don't think the issue is database performance; I've tested the database portion and all of the data comes back in less than 5 seconds.  In fact, all paging is handled in the middle tier.  That is, we retrieve all of the data (all 2500 rows) and cache it in the middle tier and use LinqDataSources to handle the paging.  What this means is that regardless of the size of the page, all of the data is retrieved from the database up front.

I believe the issue is displaying all of that data on the screen.  I don't think it is a performance problem.  All of the data is displayed on the screen as expected, so, it appears there is no time out.  I believe an earlier comment about viewstate may be the best explanation.  I have check boxes, cascading drop-downs and buttons that all are handled within the context of update panels.  If I click on any of them when all 2500 rows are displayed, then I get the 12031 error almost immediately.

Here is a full scenario:

1) (~15 sec)  Because of default selection criteria, the page opens with no rows displayed.  However, all 2500 rows are cached from the database at this time.
         (all button clicks, updates work without error)
2) (~3 sec)  Change selection criteria to include all data.  However, paging is set to 100, so only 100 items are displayed on the page.
         (all button clicks, updates work without error)
3) (~5 sec) User configures paging to show all rows (paging off).  Now all rows are displayed.
         (all button clicks, updates display the 12031 error immediately) 

My code is too bulky and sensitive to share.

As suggested in an earlier post, I need to verify my versions of the Ajax extensions and Toolkit (though, I am not confident that this will help).  By the way, I am on VS-2008 and the 3.5 framework.

Will 


Tuesday, November 18, 2008 7:04 AM

I solved this problem of the error 12031  came from a
UPDATEPANEL. replacing a Server.Transfer () of 
previous page by a Response.Redirect (url, false);


Friday, January 2, 2009 11:05 AM

I found this to be true also, except in some cases, Response.Redirect(url,true) is required with the grid.


Tuesday, January 6, 2009 12:41 PM

Hi,

How did the Response.Redirect really help ?

 Could you please post the code with detail ?

 

Thanks.


Thursday, January 15, 2009 1:47 PM

I am getting this error as well, but I am using Response.Redirect anytime I redirect to a new page. I am using quite a bit of AJAX as well as others I have read about here. I do not have a true or a false parameter in my response redirects, but some are saying that they are true some places and false in others based on grids.  What does the true and false parameter really do?  All I do is tell it what page to redirect to.