title: Problems with AcquireRequestState
body: <p>I've got a mistery thing.</p>
  
  <p>I've wrotten some code on Application_AcquireRequestState to rewrite some js,css and images. </p>
  
  <p>With Visual Studio 2010 all works fine (AcquireRequestState is fired in each file request) but when I go to production (IIS 7.5 with Windows 2008). AcquireRequestState fires a few times (for the most of de file requests, AcquireRequestState does not fires). </p>
  
  <p>Do you know why?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>void Application_AcquireRequestState(object sender, EventArgs e)
  {
      string ext = Path.GetExtension(HttpContext.Current.Request.Url.AbsoluteUri).ToLower();
      string ArgName = Util.GetArgName(); //ie. john                
      if (!String.IsNullOrEmpty(ArgName))
      {
          if(HttpContext.Current.Request.Url.AbsoluteUri.ToLower().Contains("/home/"))
          {
              sitebase.GetPhysicalPathFile(Request, ArgName);
          }
      }
  }
  </code></pre>
  
  <p>Thank you very much.</p>