Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is web.config or app.config cached in memory

Tags:

asp.net

if it is cached, what happens if I use multiple web.config in multi-level folders

like image 656
user203687 Avatar asked Aug 25 '10 14:08

user203687


People also ask

Where is the web config file stored?

The Web. Config file is used to configure Oracle Web Application functionality. This file is typically installed in the c:\Inetput\wwwroot\WebApp directory.

Is app config and web config are same?

You can have a web. config for each folder under your web application. app. config is used for windows applications.

Are AppSettings cached?

AppSettings is cached. You can improve performance by further caching to limit namevaluecollection lookups.

Does changing web config reset the application?

When you edit the web. config, It will restart the AppDomain (NOT AppPool) of that web application and clears the all occupied resources and memory.

What happens if web config file is deleted?

config, unlike any other file, can be deleted.. Yes the web. config could be removed you can test it. The Website will give you error once you have removed it.

Does Web config override machine config?

The machine. config file file is at the highest level in the configuration hierarchy while Web. config file is to override the settings from the machine. config file.


1 Answers

They all get cached.

Configuration is read once, at startup. With web.config, IIS watches for file changes and restarts the application.

like image 64
Oded Avatar answered Sep 30 '22 07:09

Oded