Troubleshooting HTTP 502.5 startup issues in Azure AppService for ASP.NET Core Websites

First published on MSDN on Jun 10, 2018

Whenever ASP.NET Core website fails to start in Azure AppService we get HTTP

502.5 error and this below error page

To troubleshoot this startup error, we need to capture addition logs.

Here are the steps to capture logs :

  1. Go to SCM site, just add




    the URL as shown below

  2. In the SCM website, click on the

    Debug Console



  3. Click on





  4. Look for


    file, now click on the pencil icon to edit it

  5. Change the web.config as highlighted below







  6. Now, try to browse to the home page of your website

  7. You should see same startup failure error message

  8. Go back to SCM website

  9. Navigate to d:\home\Logfiles

  10. You should now see stdout_xxx_datetime.log as shown below

  11. Click on the pencil icon to view it.

  12. You should see the callstack and line # of the exception

    as shown below

REMEMBER: these articles are REPUBLISHED. Your best bet to get a reply is to follow the link at the top of the post to the ORIGINAL post! BUT you're more than welcome to start discussions here:

This site uses Akismet to reduce spam. Learn how your comment data is processed.