We seem to intermittently get a PageRequestManagerServerErrorException with the error code 12029, could someone explain that error code or point to documentation ? This happens on about 1 / 40 requests and the page is nothing special, just a datagrid inside
an updatepanel and with a custom progressbar which is just a div with an animated gif that appears on beginRequest and hides on endRequest.
Is this on a form that requires the user to be logged in..it may be could not authenticate error.... If you use fiddler and attach to it - it will actually give you the real error message on why it was aborted...if you do the digging...The SCM traps and
surpresses alot of the serverside errors (in my opinion)... so when a session expires...unfortunately the ajax error codes do not map to IIS error codes...
So the problem is the session expiring? Can you use sliding experation in forms? So the user will stay there as long as there are requests from that session?
2. If that is an issue - create a IFRAME that loads a blank .aspx page that has the meta tag refresh to like every 10 minutes or something - and embedded it at the bottom of the page and merely add the style: display: none to it (so it doesn't actually
show but is still visible....
3. If the ticker is calling back to the server to update the ticker or whatever - change the service you are using to actually also check for authentification (I am not sure how the authentification service works that Ajax has - but I believe the ajax.asp.net
sdocumentation site has some examples....(so I don't really call this a solution ....as I have no idea how to implement it...)
Are you using fiddler? You should...It'll tell you what exactly caused the error...there are also a couple of good extensions for firefox that will help debug the issue as well...
Also note that setting compilation debug to true and trace enabled also cause sporadic behavior when it comes to ajax...Also - do a search on the forums here for exception handling - it is possible to track the exception generated by ajax and log it....
and there a few forum posts on the procedure for doing this (also code examples on the ajax.asp.net documentation site)....
- It happens with or without debug=true: i'm testing it with the VS ASPNET server, with IIS 5 and with IIS 6. It happens everywhere and randomly, regardless of the debug setting. And I'm not tracing anywhere.
- I'm already logging the exception into SQL using this:
Protected Sub ScriptManager1_AsyncPostBackError(ByVal sender As Object, ByVal e As Microsoft.Web.UI.AsyncPostBackErrorEventArgs) Handles ScriptManager1.AsyncPostBackError
Dim conn As New SqlConnection
Try
conn.ConnectionString = ConfigurationManager.ConnectionStrings("ApplicationDatabase").ConnectionString
Dim comm As SqlCommand = conn.CreateCommand
comm.CommandText = "AjaxRecordError"
comm.CommandType = CommandType.StoredProcedure
comm.Parameters.AddWithValue("exMessage", e.Exception.Message)
comm.Parameters.AddWithValue("exStack", e.Exception.StackTrace)
comm.Parameters.AddWithValue("exSource", e.Exception.Source)
comm.Parameters.AddWithValue("exServerName", Server.MachineName)
comm.Parameters.AddWithValue("date", DateTime.UtcNow)
comm.Parameters.AddWithValue("ip", Request.UserHostAddress)
conn.Open()
comm.ExecuteNonQuery()
Catch ex As Exception
Finally
conn.Close()
End Try
So, i'm actually tracking the exception, but it isn't very helpful anyway (at least for me! :) ) :
Here is one of the records (which are all the same BTW):
exception.Message = "Input string was not in a correct format."
exception.StackTrace = " at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)"
exception.Source = "mscorlib"
I can see from this that is something related with parsing (I think), but as it's happening randomly, without pattern, I can't find where to start looking at.
And, finally, I'm already using Fiddler, but I must admit that I don't know where to dig to help me with the issue.
Any further help would be really appreciated! :)
Juan
Juan Barrera
MCTS
Please remember to click "Mark as Answer" on this post if it helped you.
pqxl
Member
565 Points
115 Posts
PageRequestManagerServerErrorException error code 12029
Oct 31, 2006 03:19 PM|LINK
We seem to intermittently get a PageRequestManagerServerErrorException with the error code 12029, could someone explain that error code or point to documentation ? This happens on about 1 / 40 requests and the page is nothing special, just a datagrid inside an updatepanel and with a custom progressbar which is just a div with an animated gif that appears on beginRequest and hides on endRequest.
albertpascua...
All-Star
17520 Points
3475 Posts
MVP
Re: PageRequestManagerServerErrorException error code 12029
Nov 03, 2006 07:46 PM|LINK
Al
My Blog
jodywbcb
Contributor
4482 Points
985 Posts
Re: PageRequestManagerServerErrorException error code 12029
Nov 04, 2006 12:58 AM|LINK
Is this on a form that requires the user to be logged in..it may be could not authenticate error.... If you use fiddler and attach to it - it will actually give you the real error message on why it was aborted...if you do the digging...The SCM traps and surpresses alot of the serverside errors (in my opinion)... so when a session expires...unfortunately the ajax error codes do not map to IIS error codes...
My Blogs on .Net 2.0 and Ajax
http://csk.wbcb.com
http://ArtbyJody.com
mbcooper
Member
75 Points
15 Posts
Re: PageRequestManagerServerErrorException error code 12029
Nov 05, 2006 12:43 PM|LINK
I get the same ...
Have a ticker-tape-liek page that updates every 5 seconds .. eventually, teh session expires on teh authenticated page and I get this nasty message.
mbcooper
Member
75 Points
15 Posts
Re: PageRequestManagerServerErrorException error code 12029
Nov 05, 2006 12:43 PM|LINK
I get the same ...
Have a ticker-tape-liek page that updates every 5 seconds .. eventually, the session expires on teh authenticated page and I get this nasty message.
albertpascua...
All-Star
17520 Points
3475 Posts
MVP
Re: PageRequestManagerServerErrorException error code 12029
Nov 05, 2006 02:58 PM|LINK
Al
My Blog
jodywbcb
Contributor
4482 Points
985 Posts
Re: PageRequestManagerServerErrorException error code 12029
Nov 05, 2006 10:54 PM|LINK
Two solutions for you:
1. One change your web.config to allow for longer sessions - by default I think .Net 2.0 the timeout is 10 minutes (in 1.1 it was 15)
<authentication mode="Forms">
<forms loginUrl="Users_Login.aspx" timeout="555555555"/>
</authentication>
2. If that is an issue - create a IFRAME that loads a blank .aspx page that has the meta tag refresh to like every 10 minutes or something - and embedded it at the bottom of the page and merely add the style: display: none to it (so it doesn't actually show but is still visible....
3. If the ticker is calling back to the server to update the ticker or whatever - change the service you are using to actually also check for authentification (I am not sure how the authentification service works that Ajax has - but I believe the ajax.asp.net sdocumentation site has some examples....(so I don't really call this a solution ....as I have no idea how to implement it...)
The above should help you with your situation...
My Blogs on .Net 2.0 and Ajax
http://csk.wbcb.com
http://ArtbyJody.com
Rasetti
Participant
1216 Points
286 Posts
Re: PageRequestManagerServerErrorException error code 12029
Nov 06, 2006 01:04 AM|LINK
Hi!
I'm getting the same error, it's happening completely random and i'm sure it's not time out related
Besides any workaround, I think that the best way to solve it would be to be able to know what's error number 12029.
Any of the AJAX developers could clarify this?
Regards,
Juan
MCTS
Please remember to click "Mark as Answer" on this post if it helped you.
jodywbcb
Contributor
4482 Points
985 Posts
Re: PageRequestManagerServerErrorException error code 12029
Nov 06, 2006 01:10 AM|LINK
Are you using fiddler? You should...It'll tell you what exactly caused the error...there are also a couple of good extensions for firefox that will help debug the issue as well...
Also note that setting compilation debug to true and trace enabled also cause sporadic behavior when it comes to ajax...Also - do a search on the forums here for exception handling - it is possible to track the exception generated by ajax and log it.... and there a few forum posts on the procedure for doing this (also code examples on the ajax.asp.net documentation site)....
My Blogs on .Net 2.0 and Ajax
http://csk.wbcb.com
http://ArtbyJody.com
Rasetti
Participant
1216 Points
286 Posts
Re: PageRequestManagerServerErrorException error code 12029
Nov 06, 2006 01:31 AM|LINK
Jody, thanks for your answer,
- It happens with or without debug=true: i'm testing it with the VS ASPNET server, with IIS 5 and with IIS 6. It happens everywhere and randomly, regardless of the debug setting. And I'm not tracing anywhere.
- I'm already logging the exception into SQL using this:
Protected Sub ScriptManager1_AsyncPostBackError(ByVal sender As Object, ByVal e As Microsoft.Web.UI.AsyncPostBackErrorEventArgs) Handles ScriptManager1.AsyncPostBackError
Dim conn As New SqlConnection
Try
conn.ConnectionString = ConfigurationManager.ConnectionStrings("ApplicationDatabase").ConnectionString
Dim comm As SqlCommand = conn.CreateCommand
comm.CommandText = "AjaxRecordError"
comm.CommandType = CommandType.StoredProcedure
comm.Parameters.AddWithValue("exMessage", e.Exception.Message)
comm.Parameters.AddWithValue("exStack", e.Exception.StackTrace)
comm.Parameters.AddWithValue("exSource", e.Exception.Source)
comm.Parameters.AddWithValue("exServerName", Server.MachineName)
comm.Parameters.AddWithValue("date", DateTime.UtcNow)
comm.Parameters.AddWithValue("ip", Request.UserHostAddress)
conn.Open()
comm.ExecuteNonQuery()
Catch ex As Exception
Finally
conn.Close()
End Try
So, i'm actually tracking the exception, but it isn't very helpful anyway (at least for me! :) ) :
Here is one of the records (which are all the same BTW):
exception.Message = "Input string was not in a correct format."
exception.StackTrace = " at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)"
exception.Source = "mscorlib"
I can see from this that is something related with parsing (I think), but as it's happening randomly, without pattern, I can't find where to start looking at.
And, finally, I'm already using Fiddler, but I must admit that I don't know where to dig to help me with the issue.
Any further help would be really appreciated! :)
Juan
MCTS
Please remember to click "Mark as Answer" on this post if it helped you.