Forms Authentication & Virtual Directory
Posted
by benclaytonfranklin
on Stack Overflow
See other posts from Stack Overflow
or by benclaytonfranklin
Published on 2010-02-10T12:07:33Z
Indexed on
2010/04/05
4:03 UTC
Read the original article
Hit count: 313
Hi,
We're having trouble getting Forms Authentication to work with a virtual directory in IIS.
We have a main site, and then a microsite setup within a virtual directory. This mircosite has its own admin system within an "Admin" folder, which has authentication on it but currently it is not kicking in and the admin section is browsable by anyone.
The web.config with the admin folder has the following:
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authorization>
<deny users="?"/>
</authorization>
<customErrors mode="RemoteOnly" defaultRedirect="~/Admin/Error.aspx"/>
</system.web>
</configuration>
Could anyone give me any clues as to why this might not be working?
Cheers!
© Stack Overflow or respective owner