HI:)
I am using the ajax webextension CTP. Problem is that suppose we leave the website open and disconnect the internet connection
I got the following two errors at different time instance:
1- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while
processing the request on the server. The status code returned from the server was: 12029
2- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while
processing the request on the server. The status code returned from the server was: 12007
Hi, if want to simulate what happens if the user connection drops and wants show a proper message, in that case hook the endRequest of PageRequestManager:
function EndRequestHandler(sender, args)
{
if (args.get_error() != undefined)
{
if ((args.get_response().get_statusCode() == '12007') || (args.get_response().get_statusCode() == '12029'))
{
//Show a Message like 'Please make sure you are connected to internet';
}
}
}
Great Rashid, [:)]
Thanks for response.
Problem has been solved as i have written the code as follows to display a alert message:
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args)
{
if (args.get_error() != undefined)
{
if ((args.get_response().get_statusCode() == '12007') || (args.get_response().get_statusCode() == '12029'))
{
//Show a Message like 'Please make sure you are connected to internet';
alert('Please make sure you are connected to internet');
}
}
}
I am very new with ajax. probelm with above code is that once we will click the ok button on alert
then the following alert message show :
but i don't want the display this alert when the user click
'Please make sure you are connected to internet' message.
---------------------------
Windows Internet Explorer
---------------------------
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12029
---------------------------
OK
---------------------------
Please suggest how can i handle this situation so the error message could not display
when the user click on the 'Please make sure you are connected to internet' message.
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args)
{
if (args.get_error() != undefined)
{
if ((args.get_response().get_statusCode() == '12007') || (args.get_response().get_statusCode() == '12029'))
{
//Show a Message like 'Please make sure you are connected to internet';
alert('Please make sure you are connected to internet');
args.set_errorHandled(true);
}
}
}
srinandan01
0 Points
5 Posts
The status code returned from the server was: 12029
Jul 04, 2007 02:52 PM|LINK
HI:)
I am using the ajax webextension CTP. Problem is that suppose we leave the website open and disconnect the internet connection
I got the following two errors at different time instance:
1- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while
processing the request on the server. The status code returned from the server was: 12029
2- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while
processing the request on the server. The status code returned from the server was: 12007
Please help . how to handle this issue.
Regards,
Sri...
jackyang
Contributor
5816 Points
782 Posts
Re: The status code returned from the server was: 12029
Jul 04, 2007 03:15 PM|LINK
Your firewall issue? http://blogs.telerik.com/blogs/twisted_asp_net/archive/2007/06/26/2528.aspx
.NET Developer
ASP.NET/jQuery Spell Checker
Raymond Wen ...
All-Star
32101 Points
3764 Posts
Re: The status code returned from the server was: 12029
Jul 10, 2007 03:50 AM|LINK
Hi,
What do you mean by "disconnect the internet connection" ? Does it mean the visitor can't connect to the server?
If yes, I think it's normal you will get the above error.
Internally, AJAX use XmlHttpRequest to request different resources in a similar way that the browser does. It requires connection to the server.
And the status code 12029 means : ERROR_INTERNET_CANNOT_CONNECT
The attempt to connect to the server failed.
12007 ERROR_INTERNET_NAME_NOT_RESOLVED
The server name could not be resolved.
Both are rooted from a bad connection.
KaziManzurRa...
Contributor
4802 Points
887 Posts
Re: The status code returned from the server was: 12029
Jul 10, 2007 08:04 PM|LINK
Hi, if want to simulate what happens if the user connection drops and wants show a proper message, in that case hook the endRequest of PageRequestManager:
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args)
{
if (args.get_error() != undefined)
{
if ((args.get_response().get_statusCode() == '12007') || (args.get_response().get_statusCode() == '12029'))
{
//Show a Message like 'Please make sure you are connected to internet';
}
}
}
Kazi Manzur Rashid
_________________________
Blog: http //kazimanzurrashid.com
Twitter: http://twitter.com/manzurrashid
srinandan01
0 Points
5 Posts
Re: The status code returned from the server was: 12029
Jul 11, 2007 10:18 AM|LINK
Great Rashid, [:)]
Thanks for response.
Problem has been solved as i have written the code as follows to display a alert message:
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args)
{
if (args.get_error() != undefined)
{
if ((args.get_response().get_statusCode() == '12007') || (args.get_response().get_statusCode() == '12029'))
{
//Show a Message like 'Please make sure you are connected to internet';
alert('Please make sure you are connected to internet');
}
}
}
I am very new with ajax. probelm with above code is that once we will click the ok button on alert
then the following alert message show :
but i don't want the display this alert when the user click
'Please make sure you are connected to internet' message.
---------------------------
Windows Internet Explorer
---------------------------
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12029
---------------------------
OK
---------------------------
Please suggest how can i handle this situation so the error message could not display
when the user click on the 'Please make sure you are connected to internet' message.
Waiting for reply..
With Regards,
Sri..
KaziManzurRa...
Contributor
4802 Points
887 Posts
Re: The status code returned from the server was: 12029
Jul 11, 2007 10:45 AM|LINK
Try this:
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args)
{
if (args.get_error() != undefined)
{
if ((args.get_response().get_statusCode() == '12007') || (args.get_response().get_statusCode() == '12029'))
{
//Show a Message like 'Please make sure you are connected to internet';
alert('Please make sure you are connected to internet');
args.set_errorHandled(true);
}
}
}
Just added this args.set_errorHandled(true);
Kazi Manzur Rashid
_________________________
Blog: http //kazimanzurrashid.com
Twitter: http://twitter.com/manzurrashid
srinandan01
0 Points
5 Posts
Re: The status code returned from the server was: 12029
Jul 11, 2007 11:31 AM|LINK
Great Rashid, [:D]
Thanks for quick response.
Now the problem has been solved properly.
With Regards,
Sri...
phantomsg1
Member
2 Points
1 Post
Re: The status code returned from the server was: 12029
Nov 12, 2007 07:33 AM|LINK
hello, thanks for this solution.
where should i put this code, is it in the .aspx file or in cs file?
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: The status code returned from the server was: 12029
Nov 12, 2007 08:38 AM|LINK
hello.
well, it's js code, so you should put it inside a script tag at the end of your aspx page.
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
tafheem
Member
4 Points
2 Posts
Re: The status code returned from the server was: 12029
Feb 29, 2008 04:48 AM|LINK
Hi!
I am running a web site having so many pages. I have used Ajax as well as JavaScript.
I receive this error when the connection to server drops. How can I know which page is producing error?
or I have to write this code in ervery page?
Please reply
thanx in advance