Deploying ASP.NET Core Web API to Azure Gets Error 500 On Website

Ali Yorulmaz 0 Reputation points
2023-09-28T14:59:48.41+00:00

Im trying to deploy my .NET 6 web api on azure app service. On github actions i get deploy success message. When i try to open webpage it gives http error 500.
On localhost/ project loads succesfullyUser's image

User's image

User's image

User's image

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

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 18,046 Reputation points
    2023-09-29T04:19:33.68+00:00

    Hello@Ali Yorulmaz We are sorry to hear you're facing this problem.

    Can you please share the azure documentation you followed to deploy your web API? is this a new or an existing web API? Please share the full 500 error message

    There could be multiple reasons for this error. To troubleshoot this issue, you can follow the below steps:

    • Check the app service logs in Kudu (https://<app-name>.scm.azurewebsites.net/DebugConsole) for more details on the error. This can help pinpoint where the issue is.
    • Enable failed request tracing for the app service and check the detailed error messages.
    • Verify all dependencies like packages and assemblies are deployed properly with the app.

    -Grace

    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.