How do I make my asp.net application appear instead of the default on azure?

Jay Pandit 21 Reputation points
2020-08-21T02:24:31.04+00:00

Hello,

I am designing an asp.net web application and want to publish it to Azure. I was able to create it but it keeps displaying the default asp.Net webpage. I want to know how can I link this to my actual page. My page with the code is called FairCalculator.aspx and the code for the calculations is called FairCalculator.aspx.cs. Please let me know how I can fix it so it prints my actual code and not the default page. Thank you!

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
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2020-08-21T15:51:31.637+00:00

    Hi @Jay Pandit I'm not sure how far or where in the process you made it, so I'll put the steps down and you can pick up where you need to. I'm assuming you created an ASP.NET Web Forms application with a project structure similar to this and that you published your app.

    • Confirm that your code was published in https://<app>.scm.azurewebsites.net/DebugConsole. In Visual Studio, creating a new publish profile doesn't result in a code publish. 19466-image.png
    • Enable diagnostic logging on your app service to track any errors that may appear during code execution 19449-image.png
    • Default.aspx should be displayed once you browse to your app. If you want to change this, you can configure your app service to default to FairCacluator.aspx by setting it as a default document under your app service configuration path settings 19523-image.png
    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.