Tillad en fil mens resten er password beskyttet
Jeg vil gerne give adgang til filen glemt_password.aspx til alle. Jeg har prøvet med noget ala<location path="glemt_password.aspx">
<security>
<authentication>
<allow users="*" />
</authentication>
</security>
</location>
Men det virker ikke. Her er min kode det skal fungere sammen med:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="connStr" value="server=localhost;database=;uid=sa;pwd=;" />
</appSettings>
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name="MyAuth" loginUrl="login.aspx"
protection="All"
timeout="30" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
