ASP.Net Core Web App not working after deployment

oliver 0 Reputation points
2023-11-04T17:18:44.2266667+00:00

Trying to run an ASP.Net Core Web App on Azure. The deployment is done by GitHub

The GitHub Actions logs are fine. When I SSH into the server, the files are in the wwwroot folder. These match those from the build artefact on GitHub Actions

It builds and runs fine locally.

There are no logs on the Web App (afaik, it should show some if it failed to start)

It still slows the default "Your web app is running and waiting" page

I have restarted multiple times.

Not sure where I have messed up?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,407 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 61,731 Reputation points
    2023-11-04T20:44:29.4666667+00:00

    Typically the app is crashing at startup due to configuration or permissions. If you did it add adequate logging, you can use the kudu console and manually run the app.

    0 comments No comments

  2. JasonPan - MSFT 4,811 Reputation points Microsoft Vendor
    2023-11-06T10:06:53.2166667+00:00

    Hi @oliver,

    I found you are using SSH, so it's a linux web app. And we need to know the Startup Command for linux platform.

    You can try to use dotnet <myapp>.dll to fix the issue.

    What are the expected values for the Startup File section when I configure the runtime stack?


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,

    Jason

    0 comments No comments