Azure Web App .NET Core Start Up Error - How to find cause

Niharika Koneru 441 Reputation points Microsoft Employee
2020-12-17T18:18:33.087+00:00

I have deployed a .NET core application to an Azure App Service, and I am getting a startup error (500.30). My application works locally, and the error logging is not providing enough information for me to troubleshoot the issue. How can I see more logging?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,778 questions
0 comments No comments
{count} votes

Accepted answer
  1. bharathn-msft 5,096 Reputation points Microsoft Employee
    2020-12-18T17:46:28.933+00:00

    @Niharika Koneru - Welcome to the Q&A platform.

    For common troubleshooting scenarios regarding Azure App Service , please refer to : Troubleshoot ASP.NET Core on Azure App Service and IIS . In case your scenario doesn't fall into the categories listed in the document, please see if you can enable additional logging to further troubleshoot the issue. Follow through the below process to capture additional logging.

    • Go to the SCM site -> https://yourapp.scm.azurewebsites.net or also can go via Azure Portal --> App Service Blade --> Advanced Tools
    • Click on the Debug Console tab at the top of the page and choose CMD
    • Navigate to site\wwwroot
    • Here look for web.config file and click the pencil icon to edit it 49584-kudu-webconfig.png
    • Edit the web.config as shown below:
    • Now browse the homepage of your site
    • You should see the startup failure error message
    • Now go back to the SCM site
    • Navigate to d:\home\LogFiles
    • You should see stdout_xxx_datetime.log as shown below: 49549-kudu-stdout.png
    • Click the pencil icon to view it
    • You should see the callstack and line# of the exception as shown below: 49575-kudu-stdout-log.png

    Hope this information helps, please let us know if you have any further queries.

    Thank you cobethur for helping on this.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.