A component of ASP.NET for creating RESTful web services that support HTTP-based communication between clients and servers.
Hello @Peter_1985 ,
Thank you for the snippet. From the screenshot, you have
if (app.Environment.IsProduction())
{
app.UsePathBase("/webapp1"); // Must match your IIS alias
}
It is configured in Production environment, but the swaggerUI is configured in Development environment. This is likely why you only get the error when go to https://localhost:7060/swagger/index.html
To fix this, you can configure the environment to Production for both.
Hope you can resolve your issue. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide provide feedback.
Thank you.