Configuring a default document for deployment

Posted 2 years ago by dpreznik
Edited 2 years ago
0

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


@page "/"

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. 

Someone is typing...

Post a Reply

You must be logged in to add a new post.
Number of online users: 4
An error has occurred. This application may no longer respond until reloaded. Reload 🗙