WEB.CONFIG ISSUE

A

Arvind P Rangan

Hi ALL
I have all my root files under Forms Type Authentication mode and i have
another folder where in i need no permission or a direct access to that
folder.

So i did make some changes in WEb.Config.
I added the following at the end of WEB.Config.
<location path="ALL"> -- ALL is the folder name
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

Few days back it worked now its diverting all the pages back to login.aspx
and as there is not login.aspx in that folder it raises error. ieok.

But, what is the reason that the security changed.

If am wrong kindly give me the way to make a folder in the wwwroot available
to all while the main folder is restricted.

Thanks

ARvind.
 
J

jib

Hi Arvind,

Did you happen to add something to your <authentication> method? E.g. look
for something similar to:

<authentication mode="Forms" >
<forms loginUrl="login.aspx" />
</authentication>

This would be responsible for redirecting your page to login.aspx. Also
keep in mind that the web.config pages are 'layered'. If you required
a login page somewhere on your site and have entered this in the top
web.config, you may need to install another web.config at a lower level
with the login directive removed.

Good luck

Jib
 

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

No members online now.

Forum statistics

Threads
474,133
Messages
2,570,776
Members
47,334
Latest member
danialcarter

Latest Threads

Top