bruce
07-29-2004, 05:54 AM
Remove the web.config in your parent dir, put this in your admin directory
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
<authentication mode="Forms">
<forms
loginUrl="loginpage.aspx"
name="passwordProtectFolder"
path="thisDir/protectedPath"
protection="All"
timeout="80"
/>
</system.web>
</configuration>
[b]quote:Originally posted by jdenman
I have a admin directory which has a web.config file that contains:
[b]quote:
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
</blockquote id="quote"></font id="quote">
And the parent directory has this in the web.config
[b]quote:
<location path="protectedPath/">
<system.web>
<authentication mode="Forms">
<forms
loginUrl="loginpage.aspx"
name="passwordProtectFolder"
path="thisDir/protectedPath"
protection="All"
timeout="80"
/>
</blockquote id="quote"></font id="quote">
It's asking for the network user/pass, rather than redirecting to the loginpage.aspx file. Any ideas?
</blockquote id="quote"></font id="quote">
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
<authentication mode="Forms">
<forms
loginUrl="loginpage.aspx"
name="passwordProtectFolder"
path="thisDir/protectedPath"
protection="All"
timeout="80"
/>
</system.web>
</configuration>
[b]quote:Originally posted by jdenman
I have a admin directory which has a web.config file that contains:
[b]quote:
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
</blockquote id="quote"></font id="quote">
And the parent directory has this in the web.config
[b]quote:
<location path="protectedPath/">
<system.web>
<authentication mode="Forms">
<forms
loginUrl="loginpage.aspx"
name="passwordProtectFolder"
path="thisDir/protectedPath"
protection="All"
timeout="80"
/>
</blockquote id="quote"></font id="quote">
It's asking for the network user/pass, rather than redirecting to the loginpage.aspx file. Any ideas?
</blockquote id="quote"></font id="quote">