title: Owin Middleware results in 404 on server
body: <p>I have a owin middle ware it works on my IIS7 on my dev machine (win7).
  But when deployed to a 2008 server the page returns 404</p>
  
  <p>I hook up the middleware like this</p>
  
  <pre><code>public static class AppBuilderExtensions
  {
      public static void InitTemplateStore(this IAppBuilder app, string templatePath, string fileMask)
      {
          TemplateStoreMiddleware.Init(templatePath, fileMask);
          app.Map("/templates", subApp =&gt; subApp.Use&lt;TemplateStoreMiddleware&gt;());
      }
  }
  </code></pre>
  
  <p>The code that uses the middleware can be found here</p>
  
  <p><a href="https://github.com/AndersMalmgren/Knockout.Bootstrap.Demo">https://github.com/AndersMalmgren/Knockout.Bootstrap.Demo</a></p>
  
  <p>The site is hosted as an virtual app under the default web site on IIS</p>
  
  <p><strong>edit:</strong> Do I need to add any roles out of the default ones?</p>
  
  <p>IIS is tring to use the StaticFile handler which offcourse is wrong, why is this happening?</p>
  
  <pre><code>Module  IIS Web Core
  Notification    MapRequestHandler
  Handler StaticFile
  Error Code  0x80070002
  Requested URL   http://localhost:80/knockout.bootstrap.demo/templates?root=shared
  Physical Path   C:\inetpub\knockout.bootstrap.demo\templates
  Logon Method    Anonymous
  Logon User  Anonymous
  </code></pre>