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

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

问题描述

可能的重复:
如何防止修改 web.config 时 ASP.NET 应用程序重新启动?

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

Was just thinking about uptime. Thanks.

推荐答案

是的,你可以;见 这个答案.

然而,这不是一个好主意.
在 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天全站免登陆