New aacount

Göran Härdelin 1 Reputation point
2022-03-28T14:29:58.413+00:00

I have made a small web app with ASP.Net and thought to test it with Azure, the first time for me with Azure. The app works great when I run on localhost, and did so from the beginning on the web. Then I got the idea that I would change the name of the app, after that I have not managed to publish it via Visual Studio. It opens a session in the web browser, but the page is blank. My app has url https://levantegolfare.azurewebsites.net/. What have I done wrong?

Best regards/
Göran

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

2 answers

Sort by: Most helpful
  1. Andriy Bilous 11,176 Reputation points
    2022-03-29T04:25:26.113+00:00

    Hello @Göran Härdelin

    I understand that you have changed the name of the Web App, and after that you are not able to publish it via Visual Studio.

    Visual Studio stores publishing profile with your Web App name and other settings.
    You can edit this profile directly in Visual Studio or delete it and create new in Visual Studio

    187762-image.png

    187723-image.png


  2. ajkuma 24,736 Reputation points Microsoft Employee
    2022-03-29T07:11:02.607+00:00

    @Göran Härdelin , Adding to AndriyBilous’s answer which clearly covers everything on App Service deployment pertaining to your question on VS profile and publishing front.

    --Just to clarify, firstly, if you’re referring to ‘change’ for renaming the WebApp. On Azure App Service WebApp, it’s not possible to rename the WebApp after it’s provisioned. The app name is unique, and it includes only the valid characters are a-z, A-Z, 0-9, and -.

    --Secondly, on seeing the default (/blank) Azure page (I accessed your site) -typically, the deployment files should be available in d:\home\site\wwwroot, kindly review if all the site files are present.

    --You may navigate to Kudu Console and review the sites files [web.config, etc] (under ..\wwwroot) and, also the logs to fetch more info.

    Kudu Console: https://<yoursitename>.scm.azurewebsites.net/

    --For Local Git deployment via VS - To get automated builds from Azure App Service build server, make sure that your repository root has the correct files in your project. || Example - ASP.NET (Windows only) – [*.sln, *.csproj, or default.aspx files].
    Let Visual Studio create a repository for you. Your project will immediately be ready for deployment via Git.

    Also, please check out this doc: Deployment vs runtime issues