Can you modify the web.config and NOT restart the ASP.NET application? [duplicate]
问题 Possible Duplicate: How to prevent an ASP.NET application restarting when the web.config is modified? Was just thinking about uptime. Thanks. 回答1: Yes, you can; see this answer. 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. 回答2: You can create an external settings file and then reference it in your web.config. You will need to change the