By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,544 Members | 840 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,544 IT Pros & Developers. It's quick & easy.

Custom Error Messages...

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a

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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

P: n/a
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**

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.