Custom erro handling ??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

I try to test and implement custom error feature by setting my web config
file as follow:

<customErrors mode="RemoteOnly" Defaultredirect="MyErropage.aspx" />

Trying to redirect error to myErrorpage.aspx.

Then for testing I add a button on my form and when clicking that button I
generate a new exception with the Throw command.

Doing that I was expecting that my erro page will be displayed but instead I
have an untrap exception error.

What I am missing here, or does the fact of generating exception is not
consider as custom error ?

how to test it then

thnaks for your help
regards
serge
 
"RemoteOnly", you are accessing locally, not remote.
Turn that to "On" and see what happens.
 
Back
Top