title: ASP MVC 4 not processing static files
body: <p>I put a sub directory in my ASP MVC 4 application called "Protected" and I dropped a simple test.html file in that directory, but I cannot for the life of me figure out how to get my custom, global AuthorizeAttribute class to trigger when I view the test.html file in my browser. </p>
  
  <p>I'm using IIS Express in Integrated mode, so I thought this would work. I even tried IIS 7 in Integrated mode, but it still won't work for me. </p>
  
  <p>But maybe I'm going about things all wrong. Maybe it's some misunderstanding I have. </p>
  
  <p>Basically, I need to programatically authorize requests to static files within that folder. Is there another way to do that?</p>
  
  <p>Update as of 4/9/2013 10:07:25 AM by AD: Zidad's answer below got things going in the right direction, but I'm having trouble getting the route configured now. Here's what I've got, but the file is still being served up directly instead of hitting the Home/File action.</p>
  
  <pre class="lang-cs prettyprint-override"><code>routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
  routes.MapRoute("NotFound", "protected/test.html", new { controller = "Home", action = "File" });
  
  routes.MapRoute(
      name: "Default", 
      url: "{controller}/{action}/{id}", 
      defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional });
  </code></pre>
  
  <p>Update as of 4/9/2013 10:20:54 AM by AD: Ohhhhhhhhhhhhhhhhhhh, now I get it! Definitely a misunderstanding on my part. Guess I still have a few things to learn. :) </p>