简体   繁体   English

ASP更新IIS页面

[英]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. 我知道为什么替换web.config文件时用户会被“踢”,并且知道忽略会话变量等。但是,我很好奇他们是否可以通过这种方式通知用户“新”或“更新”可供他们注销并重新登录。

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. 作为“标准”典型的ASP.Net页,这是不可能的。 Their are however a few 3rd party apps out their that will allow something like this. 但是,它们是少数一些第三方应用程序,它们将允许这样的操作。 For example, NuGet can handle this. 例如,NuGet可以处理此问题。 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. 基本概念是:将网站的第一个版本打包为NuGet软件包。 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. 添加一个自定义的NuGet客户端,该客户端在网站内运行并检查已安装的一个软件包的更新。 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 更新管理器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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