title: Swagger UI show 404 error when I deploy it on IIS
body: <p>I have an asp.net core application with vue.js. I made web api. And when I'm debugging via localhost - everything is fine. Swagger UI is working, also as application.
  But when I deploy app to the IIS, Swagger don't work and show 404 error.</p>
  <p>Here is swagger configuration in Startup.cs</p>
  <pre><code>services.AddSwaggerGen(config =&gt;
          {
              var xmlFile = $&quot;{System.Reflection.Assembly.GetExecutingAssembly().GetName().Name}.xml&quot;;
              var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
              config.IncludeXmlComments(xmlPath);
          });
  app.UseSwagger(options =&gt;
              {
                  options.SerializeAsV2 = true;
                  options.RouteTemplate = &quot;info/swagger/{documentname}/swagger.json&quot;;
              });
  
              app.UseSwaggerUI(options =&gt;
              {
                  options.SwaggerEndpoint(&quot;/info/swagger/v1/swagger.json&quot;, &quot;v1&quot;);
                  options.RoutePrefix = &quot;info/swagger&quot;;
              });
  </code></pre>
  <p>What should I do? changing SwaggerEnpoint to &quot;../info/swager.....&quot; don't help.
  I need to working asp .net core app and also swagger on IIS.</p>