简体   繁体   中英

What happens when a user accesses to an ASP.NET MVC website during FTP publishing?

I have an ASP.NET MVC website that needs to be regularly updated. The publishing method is FTP, and the publishing process takes around 6-7 minutes.

During this time interval , what happens for someone who tries to visit the website?

  • Is the website (in its old version) still available ?
  • May the user experience an unexpected behavior while navigating?
  • Is there any danger for the website (eg compilation error ) if a user navigates during this time?
  • If the user was logged in before the publishing, is the content of its session variables lost?

Thanks for your help.

Usually Visual Studio will create a file called app_offline.htm in the destination folder. That file stays there until the process is over.

If a user tries to access the page via browser during that period, he may see a message like this:

在此处输入图像描述

The app_offline.htm will disappear as soon as the publishing is done.

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