Good Day ALL
I have tried something and i am not sure what is the problem.
i have inherited the an asp.net app. So i want to add the custom Error Handling. I know there are two methods i can do this.
1) Web Config
So i started with the web config just to see how it will look and i accessed the page that normally gives an Exception. so basically i have a page gives a
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
So now , if there is an Error i want it to go to that Error Page. In the web config i have the Following
<customErrors defaultRedirect="content/ErrorPages/SupportError.aspx" mode="On">
<error statusCode="404" redirect="content/ErrorPages/SupportError.aspx" />
<error statusCode="400" redirect="content/ErrorPages/SupportError.aspx" />
<error statusCode="500" redirect="content/ErrorPages/SupportError.aspx" />
This means that when this kind of Errors occur it should redirect to that page. All these pages are contents of the Master page including the Error page. But this Error Persist it does not show me the Error page. Even if i try to see if it goes to "Application_Error" in the Global.asa nothing goes there.
So i have also tried the second option. so i turned the web config part
"off" and i trapped this in the global.asa like this
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
but still nothing happens
Thank you for posting at Dotnetfunda
| Reply with attachment
| Alert Moderator