InternalServerError on Azure Web App deployment

Cesar Vera 0 Reputation points

Hi, I'm having some trouble figuring out why a deployment for an Azure Web App fails.

I've tried deployment to a container app, and an app service, with both GitHub actions workflow and through a web deploy using pubxml. My application runs fine and as expected on both Debug and Release builds, and I have no errors, whatsoever. Aside from some warnings about declaring non-nullable props with ? or declaring a default.

I checked logs on my local builds, and the application events using Event Viewer, and found no errors.

However, when publishing, the publish succeeds, and fails at the end with 'InternalServerError'. See below:

Publish Succeeded.
Web App was published successfully https://{myAddressHere}/
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 9:09 PM and took 02:59.481 minutes ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
========== Publish completed at 9:09 PM and took 02:59.481 minutes ==========
Installation of Web App Site extension Microsoft.AspNetCore.AzureAppServices.SiteExtension is in progress...
Successfully installed Web App extension Microsoft.AspNetCore.AzureAppServices.SiteExtension
Restarting the Web App...
Successfully restarted Web App.
A call to warmup your site failed with response code: 'InternalServerError'.

My first thoughts were to check Azure App Service configurations, which I did, and at least as far as I can tell there's no configuration that would cause my app to not run, or to throw an error. The logs on the Azure portal do not show me anything particularly useful, since those are locked behind an enterprise tier. My configuration on the application itself is accurate, and matches what the app service expects.

So, I don't know. I'm kind of stumped. Wondering if anyone can think of some edge case where this happens? Or perhaps point out something really obvious that I'm just overlooking?

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

1 answer

Sort by: Most helpful
  1. JasonPan - MSFT 4,386 Reputation points Microsoft Vendor

    Hi @Cesar Vera,

    Could you kindly check the suggestion above?

    And if you are using windows platform, you can try to set stdoutLogEnabled="true" in web.config file and change the log level to Trace in appsettings.json file. Then we can find more details about this issue.

    Best Regards


    1 person found this answer helpful.
    0 comments No comments