I created a blazor server side application. Everything works on local IIS. Now I deployed the app on Azure. When I navigate to the specified url http://MyApp.azurewebsites.net, I get this error:
You do not have permission to view this directory or page.
Here is the detailed error:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
Most likely causes: A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
So my question is: how I can specify the default document for deploying Service App on Azure? It should be Index.razor, that contains
As Index.razor is compiled into a dll, it would be probably not right to add it to Default Documents in Application Settings on Azure App Service.