Deploy the C# console application on Azure Web app service

Deepika Balla 0 Reputation points
2023-07-31T10:41:58.64+00:00

Hello,
I have created the visual studio console application in c#, In that I have build the dockerfile and its working with the startup command.
When i have deployed it in container instance then also its working as expected with the given startup command but i am facing the issue with deploying the same in the azure web app service. When i looked into the log stream for the web app service, the container is giving me an error as,
Please provide the solution for this as early as possible
User's image

Developer technologies ASP.NET ASP.NET Core
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
Developer technologies C#
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2023-08-01T10:56:37.95+00:00

    @Deepika Balla , Apologies for the delayed response.

    Typically, the error message ‘Container didnt respond to HTTP pings on port, failing site start indicates that the application container did not send back an HTTP response to the platform ping in the predetermined time. Kindy try the following steps to isolate the issue and let us know how it goes.

    1. In most cases, the application should be listening on the same port that’s exposed by the container. If there is a mismatch here, the container will time out on startup. Review the WEBSITES_PORT app settings and /or or the EXPOSE instruction in the Dockerfile - for right port to be enabled.
    2. Review the binding to localhost : Applications should be listening on 0.0.0.0 instead.
    3. By default, if your container does not respond after 230 seconds, it will time out. (This time out can be increased by with the WEBSITES_CONTAINER_START_TIME_LIMIT app setting.) (up to a maximum of 1800)

    Ref: Troubleshooting ‘Container didnt respond to HTTP pings on port, failing site start’

    If the issue persists,

    4.To enable application logging for Linux apps or custom containers in the Azure portal, navigate to your app and select App Service logs.

    Kindly let us know how it goes, I'll follow-up with you further.


    If the answer helped (pointed, you in the right direction) > please click Accept Answer

    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.