title: Web.config location tag stops working when deployed to Server
body: <p>Many thanks in advance.  When running the ASP.NET Development Server, everything is working fine.  However, when I deploy my asp.net application to the production server (IIS 7.0 integrated mode, fresh install), my location tags in my web.config file are being ignored.</p>
  
  <p>Case in point: I'm using forms authentication, and when the user arrives at my login.aspx page, the external css &amp; js files are not being loaded...even though I have specified that those files should be available to all users (auth'd or not).  <strong>However, once the user is logged in, the files do in fact load.</strong></p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/Account/Login.aspx" timeout="2880" /&gt;
  &lt;/authentication&gt;
  &lt;authorization&gt;
    &lt;deny users="?" /&gt; &lt;!-- Restrict anonymouse user access --&gt;
  &lt;/authorization&gt;
  </code></pre>
  
  <p>And the exception to my css file...</p>
  
  <pre><code>  &lt;location path="Styles/xtools.css"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*"/&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
  </code></pre>
  
  <p>I've verified that the path to the css file is accurate.  Any suggestions?</p>
  
  <p>Thanks, --Dan</p>
  
  <p>--EDIT
  Forgot to mention, I have tried creating a web.config file in the targetted folder as well...still not working.</p>