7

Is it possible to disable all authentication in a subfolder of a web site that is Forms Authenticated? How do you accomplish this?

2 Answers 2

7

Yes, place a web.config file on the subfolder with this content:

<configuration>
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
</configuration>
Sign up to request clarification or add additional context in comments.

4 Comments

Actually I noticed then I couldn't get to some connection strings in the web.config one level below this new one. Is that supposed to happen?
It could have been cause by the <connectionStrings/> tag in the original post
Although the solution might seem obvious and simple, this helped me figure out a hair-puller. Thanks!
Is this different than adding a <location> tag with the same content inside the root web.config?
4

yes you can, you can use location tag in the web.config to configure folder level security.

1 Comment

I would probably use this method if I had many locations to specify differently and I wanted to manage them from a central file. good answer. +1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.