Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 683
  • Last Modified:

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

0
ThePrettyGeek
Asked:
ThePrettyGeek
  • 3
1 Solution
 
PagodNaUtakCommented:
Here, put this in web.config
<location path="css">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>

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

Open in new window

0
 
PagodNaUtakCommented:
Here is the detail explanation...
0
 
lalitgadaCommented:
<system.web>

   <authorization>

       <deny users="?"/>

   </authorization>

</system.web>

<location path="/images">

    <system.web>

        <authorization>

            <allow users="*"/>

        </authorization>

    </system.web>

</location>
0
 
PagodNaUtakCommented:
@lalitgada,

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

Before posting please check if what you are posting is already suggested!
0
 
ThePrettyGeekAuthor Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now