Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UseSwaggerDocs() #73

Open
prakashdale opened this issue Jun 10, 2021 · 1 comment
Open

UseSwaggerDocs() #73

prakashdale opened this issue Jun 10, 2021 · 1 comment

Comments

@prakashdale
Copy link

UseSwaggerDocs()
When added in program.cs -< Configure, throws exception at runtime as below.

at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()
crit: Microsoft.AspNetCore.Hosting.WebHost[6]
Application startup exception
System.NullReferenceException: Object reference not set to an instance of an object.
at Convey.Docs.Swagger.Extensions.UseSwaggerDocs(IApplicationBuilder builder)
at sphere.api.Program.<>c.b__1_1(IApplicationBuilder app)

@doruxan
Copy link

doruxan commented Oct 16, 2021

UseSwaggerDocs() When added in program.cs -< Configure, throws exception at runtime as below.

at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication() crit: Microsoft.AspNetCore.Hosting.WebHost[6] Application startup exception System.NullReferenceException: Object reference not set to an instance of an object. at Convey.Docs.Swagger.Extensions.UseSwaggerDocs(IApplicationBuilder builder) at sphere.api.Program.<>c.b__1_1(IApplicationBuilder app)

Actually, for me, this was because appsettings.json was moved to another directory. I just took them back to the root directory and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants