简体   繁体   中英

ASP Update IIS Page

I understand why users are "kicked" when you replace the web.config file, and know to ignore session variables etc. However, I was curious if their was a way to notify the user of a "new" or "update" that is available and for them to log-out and back in.

Once the users logs out, then logs back in they have the most updated version. Is this possible?

As a "standard" typical ASP.Net page, this is not possible. Their are however a few 3rd party apps out their that will allow something like this. For example, NuGet can handle this. Take a look at the link and these instructions are pulled directly from the link:

The basic concept is this: Package up the first version of a website as a NuGet package. Install this package in the website itself. I know, crazy talk, right? Add a custom NuGet client that runs inside the website and checks for updates to the one package that's installed. When the next version of the website is ready, package it up and deploy it to the package feed for the website. Now, the users of the website can be notified that an update is available.

Update Manager

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