views:

176

answers:

2

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

+5  A: 

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

<configuration>
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
</configuration>
Sergio
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?
tyndall
It could have been cause by the <connectionStrings/> tag in the original post
Sergio
+1  A: 

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

lakhlaniprashant.blogspot.com
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
tyndall