Windows Server 2003 IIS Virtual Directory not inheriting forms authentication

i have a website that uses form authentication.  However when I point the url to a pdf file under the virtual directory it does not ask for a login.  It will go directly to that file.  I want it to login first.

Thank you
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
If you are authenticating by classic asp, you are only authentication pages that have your authentication page. Images, pdf files and other documents are not part of that authentication.

What you want to do is bury your documents that you want private outside of the www.  Then use FileSystemObject to retrieve and store using your vb coding.
Big MontyWeb Ninja at largeCommented:
i had this exact issue awhile back, and the solution I found online was to create a web.config file with the code below, and stick in the folder that you don't want people to have access to unless they're logged in.

        <add accessType="Deny" users="?" />

Open in new window

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
bidgadgetAuthor Commented:
Thank you.  I will try these solutions tonight.
bidgadgetAuthor Commented:
Thanks so much!!!!!!!
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
Windows Server 2003

From novice to tech pro — start learning today.