Asp.net Core 3.1 produces 500 and 503 errors when deployed at App Service deployments

BarryM 16 Reputation points
2020-11-10T11:33:36.09+00:00

Hello Guys,

Why is my Asp.net Core App not loading even if i successfully publish it using visual studio 2019. I keep on getting error 500 when publishing it by defualt but if i adjust the webconfig settings based on these instructions https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-http-502-http-503 i get Error 503 and the website or my app is not running.

Please help as i need this to work as my clients are waiting.

Thank you in advance for your answers

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

1 answer

Sort by: Most helpful
  1. Ryan Hill 27,691 Reputation points Microsoft Employee
    2020-11-18T18:33:28.467+00:00

    Hi @BarryM and @Khaled Riyal ,

    Receiving HTTP 50x errors normally points to an error on your application. If you're getting this error after deployment, the I would check for errors during application startup. The following section includes steps you can do to observe your application during startup.

    1. Observe and monitor application behavior
    2. Collect data
    3. Mitigate the issue

    You can also add ASPNETCORE_ENVIRONMENT application setting and set it to Development. This will show development error page which will provide more insight into your application startup errors.

    38982-image.png

    0 comments No comments

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.