I am working in a web api (.net 5.0) having swagger is enabled. Its working fine when running locally.
But after deploying into azure, its not loading the default page swagger/index.html by default. Instead page cannot be found (404) error is shown. But when I go to the page manually entering the URL its loading correctly and listing all the API end points.
So I went to the app service page and added a new default document in configuration like this
But nothing changed. Still the 404 error when we dont specify the swagger url.
What could be wrong??
