简体   繁体   中英

Related to Web.config in ASP.NET

If we delete an old Web.Config file and add a new web.config containing a new connection string. Then the application will use this new web.config by default or do we need to make some changes at some place so that application use this new web.config.

Please advise. How to make this work.

The web.config file is loaded dynamically, any updates to it will reflect immediately by causing the application pool to reset.

I would suggest replacing it, rather than deleting it and creating a new one, so that you don't experience any downtime.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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