Forms authentication and images/style sheets

written by Ryan Olshan on Monday, March 27 2006

If you are unable to view images and/or a style sheet is not formatting a web form and you are using forms authentication, you'll need to make the below changes to Web.config (assuming that your style sheet is in a directory named style and images in a directory named images). Forms authentication will block access to them, so you'll need to allow access to them.

<?xml version ="1.0"?>

<configuration>

  <appSettings />

  <connectionStrings />

  <system.web />

  <location path ="style">

    <system.web>

      <authorization>

        <allow users ="*"/>

      </authorization>

    </system.web>

  </location>

  <location path ="images">

    <system.web>

      <authorization>

        <allow users ="*"/>

      </authorization>

    </system.web>

  </location>

</configuration>

Kick this post on .NET Kicks

Similar Posts

  1. Tightenting Community Server Control Panel Security
  2. Tweaking Community Server Out of the Box
  3. Redirecting Community Server Blogs

Comments

  • Jumping Jack Flash on on 4.24.2006 at 7:07 AM

    Jumping Jack Flash avatar

    Nice one matey!

Post a comment