Custom Error Messages...

  • Thread starter Thread starter Nick Wright
  • Start date Start date
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
 
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
 
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**
 
Back
Top