Not able to Publish Web Application on Azure Website using Visual Studio 2019

BT 1 Reputation point
2021-12-09T16:35:36.913+00:00

Hi everyone, I had created and connected to Azure SQL Database and created Azure Storage in Visual Studio 2019.

However, when I tried to publish it to Azure Website, it gave me a HTTP 404 error, which could not display the output.

What are steps to rectify to make the Azure Website to display the output on the Screen? Thank you.

Attached are the screenshots.

156259-screenshot-2021-12-09-234318.jpg

156269-screenshot-2021-12-10-000122.jpg

156331-screenshot-2021-12-10-000521.jpg

My output :

156351-screenshot-2021-12-09-235730.jpg

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 28,136 Reputation points Microsoft Employee Moderator
    2021-12-10T20:13:58.173+00:00

    @BT Thanks for posting this question.

    From the browser F12 trace, I see the following error: crbug/1173575, non-JS module files deprecated. (screenshot below)
    Just to clarify, does the WebApp work locally fine?

    Kindly review the configurations, URL and routes, Node.exe location, Cors/plugins, web.config configuration for correctness etc.

    For your Node.js application to run in Azure, it needs to listen on the port provided by the PORT environment variable.
    In your generated Express app, this environment variable is already used in the startup script bin/www (search for process.env.PORT). Port 80/443.

    Navigate to the Kudu debug Console site https://yoursite.scm.azurewebsites.net/DebugConsole
    Go into your **site/wwwroot
    directory and review the files.

    Please check this discussion for isolating the such errors.

    Note: Please do not share any PII data on the public forum

    Additionally, you may also leverage App Service diagnostics from Azure Portal, it reduces the chance of trial and error and expedites problem resolution by recommending potential solutions.

    To access App Service diagnostics, navigate to your App Service app in the Azure portal. In the left navigation, click on Diagnose and solve problems – Checkout the tile for “Diagnostic Tools” and “Availability and Performance” and/ checkout the other tiles.

    156793-image.png


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.