title: Not able to run Swagger UI
body: <p>I have a .NetCore Web API project. And I am trying to use Swagger on it.
  All the configuration looks good but when I run my project I got an 404 error, page not found. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>    public void ConfigureServices(IServiceCollection services)
      {
          services.AddSingleton(_config);
          services.AddTransient&lt;IRestHelper, RestHelper&gt;();
          // Add framework services.
          services.AddApplicationInsightsTelemetry(_config);
  
          services.AddMvc();
          services.AddSwaggerGen(config =&gt;
          {
              config.SwaggerDoc("v1", new Info { Title = "Slack Relay API", Version = "v1" });
          });
      }
  
  
       public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
      {
          loggerFactory.AddConsole(_config.GetSection("Logging"));
          loggerFactory.AddDebug();
  
          app.UseApplicationInsightsRequestTelemetry();
  
          app.UseApplicationInsightsExceptionTelemetry();
          app.UseMvc();
          app.UseSwagger(c =&gt;
          {
              c.PreSerializeFilters.Add((swagger, httpReq) =&gt; swagger.Host = httpReq.Host.Value);
          });
  
          app.UseSwaggerUI(c =&gt;
          {
              c.SwaggerEndpoint("/swagger/v1/swagger.json", "V1 Docs");
          });
      }
  </code></pre>
  
  <p>My web API base url is: <a href="http://localhost:88/" rel="nofollow noreferrer">http://localhost:88/</a> 
  So when I try to open this URL I get a 404: <a href="http://localhost:88/swagger/ui" rel="nofollow noreferrer">http://localhost:88/swagger/ui</a></p>
  
  <p>I am using NetCore 1.0.1 and In the project.json I have this line to import Swagger:
   "Swashbuckle.AspNetCore": "1.0.0"</p>
  
  <p>Any help please?
  thanks</p>