Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 240
John B Avatar asked Jan 28 '10 14:01

John B


People also ask

Does changing web config restart application?

Changes to key application files (web. config, BIN, App_Code, etc) are detected automatically and cause application restart.

What happens when you change the web config file at run time?

the answer i found :- ASP.NET invalidates the existing cache and assembles a new cache. Then ASP.NET automatically restarts the application to apply the changes.

Can we have multiple Web config files for an ASP.NET application?

You can have multiple configuration files in your asp.net project. There is no restriction to use the web. config file in the asp.net web application.

Can ASP.NET application run without web config?

Yes we can run Asp.net application without Web. config file.In case you will not define any configuration in web. config file , it will take machine.


1 Answers

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.

like image 106
SLaks Avatar answered Oct 25 '22 14:10

SLaks