question

ArifRabbani-1335 avatar image
0 Votes"
ArifRabbani-1335 asked ·

Site Showing "The page cannot be displayed because an internal server error has occurred." after adding as virtual application.

In Azure App Service, I added a virtual application. then Exported the published profile locally, added to VS and published to "site/sitename". it was successful and also showed the site. But after that i added files via ftp and site showing "The page cannot be displayed because an internal server error has occurred." After that tried several times even recreating the virtual application but same error. Still all code published to root is running good, but same with virtual application.

azure-webapps-content-deployment
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered ·

Welcome to Microsoft Q&A! Thanks for posting a good question!

Kindly ensure that the problem is not caused by having a duplicate entry web.config file generated that has a duplicate entry in the parent web.config

For example/similar case:

If the issue still persists, furthermore, to fetch more on the error you can always review the Application Logs > Failed request tracing and/or capture a network trace (F12).

To highlight further, each app has the default root path (/) mapped to D:\home\site\wwwroot, where your code is deployed by default. If your app root is in a different folder, or if your repository has more than one application, you can edit or add virtual applications and directories.

To configure virtual applications and directories, specify each virtual directory and its corresponding physical path relative to the website root (D:\home). Optionally, you can select the Application checkbox to mark a virtual directory as an application.

Hope this helps! Let us know how it goes we would be more than happy to assist you further.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.