Here's what I need...User does not have access to a site (http://myserver/sites/MySite). When user tries to access they are redirected to ugly AccessDenied.aspx.
I was researching and found that using VS I can create a custom application page that user can be redirected to. I created the app page, a feature and added an event receiver to it. No matter what I do I can't get the code execute.
If user has no permissions to site does the feature ever get activated? If not, what other choices do I have to redirect to custom access denied page?