Nothing too complicated....I have a site that uses Forms Authentication with the credentials spelled out in the web.config file. As a result of having the site protected, I cannot display any images on my login.aspx page because the user hasn't authenticated yet. I have research the web and I thought I found the answer, but I cannot get it to work for me. I need access to the images directory (~/images).
Here's my web.config file:
<configuration xmlns="
http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="false" />
<authentication mode="Forms">
<forms loginUrl="Login.aspx" path="/" timeout="30" protection="All">
<credentials passwordFormat="Clear">
<user name="SiteUser" password="pw" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="~/images">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
Can someone tell me what I am doing wrong???
Start Free Trial