2
votes

I have a web application in azure(App Service), recently i have restarted the app, after restaring i am getting:

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

Please let me know what could be the issue. application was working fine till that time. I didnt change any other settings. How to resolve this issue?

2
Any further details? If only have this error, it will be hard to find out where is wrong because this error is a common error..Cindy Pau

2 Answers

1
votes

There are a few things you can do step by step

Step 1: Use the KUDU console at https://sitename.scm.azurewebsites.net. Check if there are errors. More info about KUDU

Step 2: Have you turned on the detailed error message in the Diagnostics logs tab of the Azure portal. If not enable and see if you can track any error.This will give you a .zip file. Browse to LogFiles->DetailedErrors and here you should see some error pages.

Step 3: You can add Application Insights to your application and log those errors when you start the application

If nothing works, try restarting app service, or access it from a different location (because it happened to me earlier)

1
votes

Go to the app service, then pick Monitoring -> App Service Logs. Then enable Application Logging (FileSystem) and save the changes. Now go into Monitoring -> Log Stream and watch the Application Logs while the site is starting up, this will most likely give the detailed error message.