Hi All,
Whenever an exception error is thrown, the Application_Error (in Global.ascx) is fired, but neither Response.Redirect or Server.Transfer works.
I tried the same thing with Page_Error (on individual page), it works.
Is there any workaround to make it works in Application_Error like it is in Page_Error?
Thanks All.
Whenever an exception error is thrown, the Application_Error (in Global.ascx) is fired, but neither Response.Redirect or Server.Transfer works.
I tried the same thing with Page_Error (on individual page), it works.
Is there any workaround to make it works in Application_Error like it is in Page_Error?
Thanks All.
4 Answers, 1 is accepted
0
Hello,
If you're looking for Error Management, you're better off using
Regards,
Maria Ilieva
Telerik
If you're looking for Error Management, you're better off using
Server.GetLastError()
so you get the full Exception
object including stack trace.
Here's an MSDN article that deals with Application Errors in general and uses Server.GetLastError()
.
Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0

LamKhoa
Top achievements
Rank 1
answered on 25 Sep 2013, 02:07 PM
Yes, I know about that and I have set so that an email will be automatically be sent to me about that Exception error. However, I still can't get the page to be transfer, I don't like the fact that user stuck in the broken page and don't know why it is not responding no more.
Thanks
Lamk
Thanks
Lamk
0
Accepted
Hi LamKhoa,
After further revising the ticket and noticed the additional info in the ticket title I would conclude that the issue is actually causing by the fact you are using Ajax requests to the server instead of regular postback. Note that the required functionality could not be achieved when Ajax is used. Therefore please disable the ajax on the page and verify how it goes.
Regards,
Maria Ilieva
Telerik
After further revising the ticket and noticed the additional info in the ticket title I would conclude that the issue is actually causing by the fact you are using Ajax requests to the server instead of regular postback. Note that the required functionality could not be achieved when Ajax is used. Therefore please disable the ajax on the page and verify how it goes.
Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0

LamKhoa
Top achievements
Rank 1
answered on 01 Oct 2013, 03:50 AM
Thanks. If so, I rather stick to use Page_Error event on each individual page.