Home

Troubleshooting

There might be a scenario where you see an error An unexpected error has occurred!” on the screen when trying to view the website, after deployment.

To resolve it, follow these steps:

Step 1

  1. Go to Azure portal and search for the resource group created for the deployment.
  2. Under resource group, select the App Service resource for the deployment.
  3. Click on the Application Settings in the App Service resource.

  4. Under App settings section of the Application Settigns page, make sure all the parameters present in the parameters.json file are successfully copied, along with their correct values, to the App settings section.
    1. If there is a missing parameter, add that parameter and click on Save.
    2. If the value of a parameter is incorrect, make sure to correct that value and click on Save.

  5. Browse the URL for the website (or refresh the website page).
  6. If the error persists, follow Step 2

Step 2 (To be followed only if Step 1 fails)

  1. Browse to https://<XYZ>.scm.azurewebsites.net, where https://<XYZ>.azurewebsites.net is the URL for the deployed website.
  2. Under Debug console section, select PowerShell

  3. In the list, select site

  4. Select wwwroot in the list.

  5. Click on the edit option adjacent to Web.config

  6. Search for this line in the file:

    And change it to,<customErrors mode=”Off” />

    Click on the Save button.

  7. Refresh the website. You should be able to see the complete error now. Take a screenshot and send it to projectsangam@microsoft.com for further investigation.
Suggest edit
Last updated on December 19, 2018
Suggest Edit
Scroll to Top