How to resolve error 500 on Azure web app?

前端 未结 4 1299
执笔经年
执笔经年 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:15

    I used the Azure Log Stream to help figure out what was going on. As Karishma Tiwari - MSFT said, the issue ended up being my web.config file (which was built for .NET 3.5 and not 4.7)

    Here's the tutorial to set up Log Streaming: https://blogs.msdn.microsoft.com/azureossds/2016/09/28/how-to-identifyreview-errors-on-php-applications-in-azure-web-apps-using-log-stream-service/

    My particular app's solution was to update my Azure App Service to use .NET 3.5, in its Application Settings, like so:

提交回复
热议问题