Authorization of specific pages

From: Andy G (ajgould_at_iastate.edu)
Date: 02/10/05


Date: Thu, 10 Feb 2005 08:41:58 -0600

I have my authorization in web.config set to <deny users="?" />, this is
what I want because we use forms authenthentication that sets a auth cookie.
We have a few pages that need to be accessed without the user having the
auth cookie. Is there a simple way to list the certain pages that you want
"unprotected"? I tried using the below and I get that stupid server error
telling you that your custom errors need to be set to off or something. I
put the below outside the already established <configuration> and
<system.web> settings. Thank you for any help or direction you might give
me.

<location path="file\path\here.aspx">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>