Custom erro handling ??

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
 
G

Guest

"RemoteOnly", you are accessing locally, not remote.
Turn that to "On" and see what happens.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top