title: Swagger gives me HTTP Error 403.14 - Forbidden
body: <p>I am trying to use Swagger with Web API. I am just using the "Azure API App" template from the ASP.NET 4.6 templates installed with Visual Studio, which includes the <code>Swashbuckle.Core</code> and the <code>SwaggerConfig.cs</code>. The API works fine (I am able to call it successfully), but if I try to go to "<a href="http://mybaseurl/swagger/" rel="noreferrer">http://mybaseurl/swagger/</a>", I get this error:</p>
  
  <blockquote>
    <p>HTTP Error 403.14 - Forbidden The Web server is configured to not list
    the contents of this directory.</p>
  </blockquote>
  
  <p>It seems like Swagger is not getting loaded or something. Anyone else get this before? I can't seem to get around this. Thank you, and please let me know if I can provide more details.</p>
  
  <p>Here is what my SwaggerConfig.cs looks like:</p>
  
  <pre><code>[assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")]
  
  namespace With.Api
  {
      public class SwaggerConfig
      {
          public static void Register(HttpConfiguration config)
          {
              var thisAssembly = typeof(SwaggerConfig).Assembly;
  
              config.EnableSwagger(c =&gt;
              {
                  c.SingleApiVersion("v1", "With.Api");
              })
              .EnableSwaggerUi();
          }
      }
  }
  </code></pre>