You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
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)
The text was updated successfully, but these errors were encountered: