Reputation: 11
http://localhost:8080/swagger-ui.html#/ deosn;t display Ui page."406 - Not Acceptable" is the error.but http://localhost:8080/v2/api-docs and /swagger-resources work fine with no error.
there is no duplicate in the dependencies.
what should be the issue?
Upvotes: 0
Views: 19455
Reputation: 1127
Add the following line in ConfigureServices of Startup.cs
services.AddMvcCore().AddJsonFormatters().AddApiExplorer();
Upvotes: 1