The problem could be related to a load balancer.
You could also check the following settings.
In the Azure portal, go to your web app.
Select **Configuration**
Select **General settings**.
For **Always On**, select **On**.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I received this message while trying to run the web app I deployed. Could you please look into this?
Thanks so much!
The problem could be related to a load balancer.
You could also check the following settings.
In the Azure portal, go to your web app.
Select **Configuration**
Select **General settings**.
For **Always On**, select **On**.
Thanks for reply! You may want to investigate this documentation Enable diagnostics logging for web apps in Azure App Service to analyze the logs to fetch more details on the issue.
Possible reasons for this ; You might have a request that takes 2-3 minutes to complete. If you check your diagnostic logfile and see this info. "The specified CGI application encountered an error and the server terminated the process". Then you can fix this by going into your web.config in your sites/wwwroot folder and adding a requestTimeout="00:20:00 to the file.
You may also want to know, the maxRequestLength indicates the maximum file upload size supported by ASP.NET, the maxAllowedContentLength specifies the maximum length of content in a request supported by IIS. Hence, you need to set both maxRequestLength and maxAllowedContentLength values appropriately to upload large files.
You may refer the approach outlined in these blogs and see if that helps.
Uploading Large Files to Azure Web Apps
Troubleshooting – IIS RequestFiltering
As mentioned in this article maxAllowedContentLength has type uint, checkout the Configuration attributes.
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you.
@SnehaAgrawal-MSFT Thank for the recommendation. You may be referring to Windows environment? We are having issues with the root of the site we have deployed. It is a Django running in Linux environment. When we access site/admin or site/api, they both work. However, if we just navigate to the main site https://app-wdts-prod-001.azurewebsites.net, it gave us a server error. Any other suggestions?
The Resolution of above issue is updated below: