如果网站运行过程中更改了网络配置文件(如连接),将会发生什么情况 [英] What will happen if web config file has been changed like connection while site running

查看:62
本文介绍了如果网站运行过程中更改了网络配置文件(如连接),将会发生什么情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果网站运行过程中更改了网络配置文件(如连接),将会发生什么情况?更改后,要花多少时间在网站中产生影响?

[edit]删除删除-OriginalGriff [/edit]

What will happen if web config file has been changed like connection while site running how much time it will be taken for affect in site after changed

[edit]SHOUTING removed - OriginalGriff[/edit]

推荐答案

文件在磁盘上被修改后,IIS会通知应用程序池重新加载它.它或多或少是瞬时的.您会注意到,因为重新编译会大大降低下一页的重新加载速度.
As soon as the file has been modified on disk, IIS will notify the Application Pool to reload it. It is more or less instantaneous. You will notice because the next page reload will be noticibly slower due to recompilation.


如果将IIS设置为在配置更改时重新加载,则Yvan是正确的.问题不仅限于由于重新编译而对性能造成的影响.与此同时,您还将丢失会话,应用程序和其他状态(如果处于InProc模式下).虽然有一个窍门.如果您使用configSource属性指定单独的配置文件,则无需更新应用程序域即可对其进行更新.

http://msdn.microsoft.com/en-us/library/ackhksh7.aspx [ ^ ]
Yvan is correct if IIS is set to reload on configuration change. The problem is not limited to just a performance hit because of recompilation. With this you will also loose session, application and other state (if in InProc mode). There is a trick though. If you use configSource attribute to specify a seperate configuration file which can be updated without the app domain refresh.

http://msdn.microsoft.com/en-us/library/ackhksh7.aspx[^]


这篇关于如果网站运行过程中更改了网络配置文件(如连接),将会发生什么情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆