您可以修改web.config并且不重新启动ASP.NET应用程序吗? [英] Can you modify the web.config and NOT restart the ASP.NET application?

查看:206
本文介绍了您可以修改web.config并且不重新启动ASP.NET应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何防止修改了web.config后,ASP.NET应用程序是否重新启动?

Possible Duplicate:
How to prevent an ASP.NET application restarting when the web.config is modified?

只是在考虑正常运行时间.谢谢.

Was just thinking about uptime. Thanks.

推荐答案

是的,您可以;请参阅这个答案.

Yes, you can; see this answer.

但是,这不是一个好主意.
在ASP.Net重新启动AppDomain之前,它将不会查看web.config.
如果更改web.config,则更改将在重新启动AppDomain之前无效.

However, it is not a good idea.
Until ASP.Net restarts the AppDomain, it will not look at web.config.
If you change web.config, your changes will have no effect until the AppDomain is restarted.

这篇关于您可以修改web.config并且不重新启动ASP.NET应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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