Base solution for your next web application
Open Closed

Swagger UI: Not Found /swagger/v1/swagger.json #5531


User avatar
0
alexanderpilhar created

I'm having troubles with swagger ui after publishing Web.Host-project to on-premise IIS. It's just a test-deployment and is therefor located in a subfolder (accessible via <a class="postlink" href="https://mydomain.local/project-name/">https://mydomain.local/project-name/</a>).

swagger ui shows following error message:

Failed to load API definition.
Errors
Fetch error
Not Found /swagger/v1/swagger.json

I guess this is because the project is located in a subfolder!?

If so, please, tell me how to make this work!


8 Answer(s)