I have a web site with restricted access.
Currently the users see
Server Error in '/' Application (in red)
Access Denied. bla bla bla... .
if they are denied access.
I'm trying to implement a custom page (which will explain why they were denied access, who to contact if they need access and then a link to return them to the original page.)
I've read several of the posts in the knowlegebase and most of them center around the same things.
The IIS Configuration, The Global.aspx and the web.config file
I have configured the custom error in IIS as shown below.
There is nothing in the Sub Application_Error portion of the Global.asax file
Since the the site also contains a sub folder that further restricts access (it contains the Admin pages for the site) so there are two web.config files.
I'm using windows groups and the authorization section to limit access to whole site and the Admin folder so the root folder contains a web.config file with these entries
and the second web.config in the Admin folder limits access futher with these.
<deny users="*" />
Still when I attempt to access a page in the Admin I get the ugly
Server Error in '/' Application
Access Denied. rather than my page.
What have I missed?