Forms Authentication - Allow Images on Login Page

I just added Forms Authentication to my project, and everything works as planed, *except* now my login page doesn't display correctly, I'm guessing this is because the user doesn't have persmission to "see" my CSS and images.

<Web.config snipit>
   <forms loginUrl......... protection="All">  '// I guess this needs to be changed somehow??
</Web.config snipit>

Any ideas?

LVL 34
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

what happens if you typein the url of a graphic whilst not logged in?  Are your graphics simple files within the project?

iwhich asp version is this?

Protection="all" refers to your authentication cookie and it's encryption/validatiion.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
flavoAuthor Commented:
It works like a treat, just doen't seem to work when I'm not authenticated.

ASP .Net, Framework Verison 1.1.lots of numbers :P

flavoAuthor Commented:
Agghhhh.. I think I found it

I was using Webmatrix and it's crappy version of "IIS" (Webmatrix Server), but running it properally (ie using IIS / localhost) it seems to work as I would have hoped.

I'll have words to the original developer, why on earth he used this damn thing I'll never know.


flavoAuthor Commented:
Thanks for the info on what Protection="All" actually does.

points for that.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.