title: OWIN hosting as webapplication in IIS 7 (OWIN Startup not getting called inside virtual directory)
body: <p>I have a Owin middleware authentication project deployed as a web-application in IIS 7.5
  but the problem is that Startup.cs is not getting called.</p>
  
  <pre><code>[assembly: OwinStartup(typeof(Authorization.Startup))]
  
  namespace Authorization
  {
      public partial class Startup
      {
          public void Configuration(IAppBuilder app)
          {
              //Logger.Write(string.Format("Authorizations-&gt;frist Configuration "), LoggingCategoryNames.PRESENTATION_LAYER_LOGGING_CATEGORY);
              ConfigureAuth(app);
          }
      }
  }
  </code></pre>
  
  <p>this code is not getting executed.
  when we deploy it as a root level website, everything works fine.</p>
  
  <p>So where are we going wrong and what can be done to make it work.
  We cannot deploy our authentication project as a seperate website, it has to be a webapplication only.</p>
  
  <p>Thanks</p>