Spock
Spock

Reputation: 6992

ASP.NET <location path= and authentication mode

Can anyone please tell me whether the <location path= works when we set <authentication mode= "None" /> ?

Upvotes: 3

Views: 5250

Answers (2)

Rudrik
Rudrik

Reputation: 832

<location path="Recovery">      //Path of the folder or form You want to allow
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>

If u dont want to allow unauthorized user type "?"

Upvotes: 1

sajoshi
sajoshi

Reputation: 2763

It does.

Check this post: Authentification-None for one folder(page) when the project is under FormsAuthentifications which shares an example.

Upvotes: 1

Related Questions