Custom Error Messages...

N

Nick Wright

Hi,

I'm trying to set up, what I thought was a simple custom
error message. I'm trying to trap 'Access Denied'. My site
is using windows authentication, 10 users have access...

The customer errors web.config bit is set up...

<customErrors mode="On"
defaultRedirect="Errors/AccessDenied.aspx">
<error statusCode="401"
redirect="Errors/AccessDenied.aspx"/>
</customErrors>

But, how does this AccessDenied.aspx page ever get
displayed if the users doesn't have access to the web
site...?

How do I acheive this....?

Regards
 
S

sirisha P

Hey,
Even I 've the same problem. I'm trying to catch the 401.2 error in
the application. The customError seems to work for all the other errors
except 401. Did you get any solution for this.

Thanks,
Sasi
 
S

sirisha P

Hey,
Even I 've the same problem. I'm trying to catch the 401.2 error in
the application. The customError seems to work for all the other errors
except 401. Did you get any solution for this.

Thanks,
Sirisha


**SORRY FOR THE DOUBLE POST**
 

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,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top