© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•14mo ago•
6 replies
LA PÀSSION🔥🔥🔥

OpenAPI Documents Empty

I upgraded my project to .NET 9, added the OpenAPI services on lines 6 and 16. Then when I go to
https://localhost:<port>/openapi/v1.json
https://localhost:<port>/openapi/v1.json
I get a blank page. The port seems fine since none of the other ports connect to a page, this one does but there's nothing. I don't know what's wrong here. The only thing off I see in my output is 'Middleware: The WebRootPath was not found: C:<project directory>\wwwroot. Static files may be unavailable'
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ OpenApi generation
C#CC# / help
17mo ago
Swagger, openAPI specification
C#CC# / help
3y ago
Normalizing OpenApi Spec File
C#CC# / help
2y ago
❔ OpenAPI add TAG swagger
C#CC# / help
3y ago