.net-core-2.0 azure app service 502.5 error

前端 未结 3 1366
忘了有多久
忘了有多久 2020-12-09 09:05

Getting a 502.5 error after CI deployment to azure app service.

When running dotnet {myproject}.dll on the debug console this is the error I get:

<
3条回答
  •  余生分开走
    2020-12-09 09:32

    I spoke to the aspnet IISIntegration team members and found my solution.

    tldr: Empty out your wwwroot folder on kudu.

    The issue relates to having old things leftover from previous 1.x deployments

    Step 1:

    Navigate to the Kudu Console (https://{yourapp}.scm.azurewebsites.net/)

    Step 2:

    Navigate to file structure

    Step 3:

    Delete wwwroot folder

    (Note: navigate into the "site" directory)

    (Note: there is a wwwroot folder within this wwwroot. You should delete the one that is in the "site" directory)

    Step 4:

    Add a new empty folder called wwwroot where you just deleted the previous one (within "site" directory)

    (Note: my deployment failed when I didn't have the empty wwwroot folder in there)

    Step 5: Redeploy your app and hopefully it works. Good luck

提交回复
热议问题