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.
ASP.Net Core Web App not working after deployment
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?
2 answers
Sort by: Most helpful
-
-
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