No constructor for type SwaggerGenerator can be instantiated using services from the service container and default values

As the asker noted in a comment, what solved this for me was adding in a reference to Api Explorer in ConfigureServices.

Specifically the line required was:

services.AddMvcCore()
        .AddApiExplorer();

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)