Re: Possible to exempt /Images from form authentication via web.config?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



use a <location> element in web.config:

<configuration>
<location path="images">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>

-Brock
DevelopMentor
http://staff.develop.com/ballen

I have an app with some graphics on the login page, but they won't
show up because the user is not authenticated, so ASP (2.0) is
blocking access to the files.  I can expose the /Images path in IIS,
but it seems there has to be a way that I'm having trouble finding to
allow /Images to be exempted from forms authenticatation such that
anyone, authenticated or not, can view the application's images.  Any
tips on a config section or way to do this?



.