title: After Deploying to IIS, Swagger UI page is not displayed
body: <p>After deploying an ASP.NET Core Web API to IIS, Swagger UI page is not displayed.</p>
  <p>Configure section:</p>
  <pre><code>app.UseSwaggerUI(c =&gt;
          {
              if (env.IsDevelopment() || env.IsProduction())
  
              {
                  c.SwaggerEndpoint(&quot;/swagger/v1/swagger.json&quot;, &quot;My Test1 Api v1&quot;);
              }
          });
  </code></pre>
  <p>Configure service:</p>
  <pre><code>services.AddSwaggerGen( );
  </code></pre>