title: deployment of owin class library to iis causes 404
body: <p>I'm getting 404 once i deploy it to the under IIS sites with 4.0 intergrate pipeline. I'm trying to access some web api route like so <a href="https://appname.domainname.com/api/v1/SomeObject/GetAll" rel="nofollow">https://appname.domainname.com/api/v1/SomeObject/GetAll</a>.</p>
  
  <p>As Console Application it worked just fine.</p>
  
  <p>My Startup file</p>
  
  <pre><code>[assembly: OwinStartup(typeof(XXX.Owin.Startup))]
  namespace XXX.Owin
  {
      public class Startup
      {
          private static readonly Logger s_logger = LogManager.GetCurrentClassLogger();
  
          public void Configuration(IAppBuilder appBuilder)
          {
              s_logger.Info("Start");
  
              HttpConfigurationManager httpConfigurationManager = new HttpConfigurationManager();
              HttpConfiguration httpConfiguration = httpConfigurationManager.Create();
  
              appBuilder.UseStageMarker(PipelineStage.Authenticate);
  
              appBuilder.Use(async (ctx, next) =&gt;
              {
                  Stopwatch stopwatch = new Stopwatch();
                  stopwatch.Start();
  
                  await next();
  
                  stopwatch.Stop();
                  Console.WriteLine("Request took: {0}", stopwatch.ElapsedMilliseconds);
              });
  
  
              appBuilder.Use&lt;CustomHeadersComponent&gt;();
              appBuilder.Use&lt;SecurityComponent&gt;();
              appBuilder.UseWebApi(httpConfiguration);
          }
      }
  </code></pre>
  
  <p>Should i add web.config ? 
  change app.config to web.config ?
  maybe i cannot create iis site and set physical path to owin directory ?</p>