Avatar of ThePrettyGeek
ThePrettyGeek
Flag for United States of America asked on

How can I get my web.config file to ignore my css and images folder

Ive got forms authentication kinda working in an ASP app but it wants to protect everything and there is a css folder and an images folder, both of which, because of the authentication are being protected to the point that when I run the site in Visual Studio all I see is white background with the logon page the formating and the images do not show up.

Im attaching that part of my web.config file in the code section(slightly edited for security reasons)

Ive scowered the MSDN sites and googled all over the place and this authentication is driving me nutts.

<authentication mode="Forms">
     <forms name=".ADAuthCookie" loginUrl="Login.aspx"  protection="All" defaultUrl="newpage.aspx" domain="testsite.com" timeout="90" path="/" />
    </authentication>
 
    
   <authorization>
      <deny users="?" />
      <allow users="*" />
    </authorization>

Open in new window

.NET ProgrammingASP.NETVisual Basic.NET

Avatar of undefined
Last Comment
ThePrettyGeek

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
PagodNaUtak

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
PagodNaUtak

Here is the detail explanation...
lalitgada

<system.web>

   <authorization>

       <deny users="?"/>

   </authorization>

</system.web>

<location path="/images">

    <system.web>

        <authorization>

            <allow users="*"/>

        </authorization>

    </system.web>

</location>
PagodNaUtak

@lalitgada,

Hi! I already suggested that, please see my post.

Before posting please check if what you are posting is already suggested!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ThePrettyGeek

ASKER
There was another post that said here is the explanation and I would love to still have that link as it did not show up or I didn't see it, so please teacher send it again.

Cristy