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

K

Keith Patrick

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?
 
B

Brock Allen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top