How to resolve error 500 on Azure web app?

前端 未结 4 1326
执笔经年
执笔经年 2021-02-18 15:26

What I have:

  • VS2015U2
  • ASP.NET 5 MVC 6 website
  • Deployed to Azure Web App
  • The site works locally
  • When I deploy t
4条回答
  •  故里飘歌
    2021-02-18 16:16

    Try adding Application Insights to the app. You should see errors on startup of your application.

    I would also take a look at your startup code to see if you are writing to disk anywhere during configuration or app.start. This might be the case if you are using AAD in any capacity.

    You can also hit up the KUDU console by targetting https://sitename.scm.azurewebsites.net . You will be able to navigate in the debugging console to see the RAW logs from IIS. That might shed some light into the situation. See KUDU for more info.

提交回复
热议问题