Page access rules in web.config

S

Steffen Loringer

Hi all,

i configured my application <deny users="?"/> but there are two pages
(start & login) that should be accessible for everybody.

How can I realize this?

Thanks for help

Steffen
 
P

Pavan Apuroop

Hi Stephen,

Try this:

1. Make all the pages, you want to allow all users, as a separate folder
in the web application.

2. Add the following code snippet to web.config file,

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

I hope this works for you

Cheers & Enjoy

Pavan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top