简体   繁体   中英

Asp.Net App published to Azure only shows “Your App Service app has been created”

I've created an Asp.Net app in Visual Studio and published it to Azure. Everything seeing to go fine, but instead of seeing my app when I browse to the URL, I see this page:

在此处输入图片说明

For me removing the publishing slot was an option. I did that and re-created it again, just starting over from scratch did the trick of re-uploading all the files.

Then: don't forget to flush the browser cache, or you are looking at the default page while it has actually been published correctly

As far as I know, this page is azure IIS start up page.

I guess you may not set the Default documents(Start page) in the Application settings.

More details about how to set it, you could refer to below image:

The hostingstart.html is the azure web app Default documents page, you see in your browser.

在此处输入图片说明

Also as vijayrkn says, you could use azure kudu console to check you have already publish all the web application to azure successfully.

About how to check it, you could refer to below image:

Locate Advanced Tools and click GO.

在此处输入图片说明

Click Debug console and click site, locate site\\wwwroot folder.

在此处输入图片说明

Little late but I just had the same problem. Visual Studio first create a profile for that deployment, after this process it says that publishing is done, but it is not, just the profile creation and App Service instance are done.

To solve this you need to run the publishing again to upload all the files. It helps to run the Preview first and see that all files will be as "Add" instead of "Update", which means that the files are not there yet.

Also there's an option "Publish immediately" instead of "Create Profile" which skips the previous step.

Hope this helps others with the same problem.

So after going into the Application Settings in Azure Portal

set Default documents (As the default page you want to load) eg:

index.aspx

Then set Virtual applications and directories (As the default path of your homepage)

Virtual Path

/index.aspx

PS Dont mess with the physical path if you dont have to.

Make sure the files are not in a separate folder, but directly located in the project itself.在此处输入图片说明

In Case Of Java :

1) Copy either the WAR or the WAR EXPLODED FOLDER CREATED BY TOMCAT ON YOUR LOCAL 2) Place the folder under wwwroot > webapps just the way you treat your file in tomcat on your local 3) Append your Website APP NAME to azure website eg : https://azurewebsites.net/ 4) You should be able to view your working application

If the step above doesnt work 1) Create a back up of ROOT of FTP azure 2) Copy the application WEB_INF , META-INF and the landing page under ROOT access the site !!! If everything is working fine give your self a pat on the back .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM