How to add an exception to ASP.NET Forms based authentication

My website is setup using "Forms" based authentication using the code shown below in my Web.config file.

I want to add a page to the website that does not require that authentication but cannot figgure out how to do it. Is this possible or must I do somethign special to allow one form to be non-secured?
<authentication mode="Forms">
        <forms name=".BLAUTH" loginUrl="Login.aspx"/>
    </authentication>

Open in new window

dxproz232Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SoLostCommented:
Normally your web.config would have entries in it like this :

<system.web>
  <authentication mode="Forms">
    <forms loginUrl="Login.aspx" name=".BLAUTH">
    </forms>
  </authentication>
  <authorization>
    <deny users="?" />
  </authorization>
</system.web>

<location path="SomePage.aspx">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
</location>


What you need to do is to add another section after the system.web section as shown above.  In the example above all users can access "SomePage.aspx" because the "allws users" has been set to "*"

Repeat this for as many pages or directories as you need.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dxproz232Author Commented:
Works perfectly, thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.