3

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

2
  • what do you mean by "works" - how do you expect the application to behave? Commented Mar 3, 2011 at 5:39
  • Yes. "works" mean whether the <location path=.. /> has any effect when we set the authentication mode to none. Commented Mar 3, 2011 at 5:53

2 Answers 2

1

It does.

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

Sign up to request clarification or add additional context in comments.

Comments

1
<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 "?"

2 Comments

Thanks but my question is whether your code, authorize the users when we set the <authentication mode= "None" /> ???
if you don't want to authorize the user then just type "*" that will allow all user to access the form or folder.

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.