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

Arif Rabbani 6 Reputation points
2020-02-01T01:33:03.91+00:00

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 App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,956 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. ajkuma 22,521 Reputation points Microsoft Employee
    2020-02-03T20:43:51.55+00:00

    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.