configuration - Why does a nested ASP.NET 4.0 web.config occasionally cease to inherit? -


given web application following structure:

main site (/)     web.config (root; appsetting="rootsetting")     applications (/applications)         app1 (/applications/app1)             web.config (app1; appsetting="app1setting") 

inside application, of time can obtain both "rootsetting" , "app1setting" via webconfigurationmanager.appsettings[] , webconfigurationmanager.connectionstrings[] static indexers.

however, time time, appears app1's web.config not loaded. when occurs, can "rootsetting" "app1setting" returns null.

i running under windows server 2008 r2 / iis7.5 / managedpipelinemode=classic.

consider using settings file, describing in answer this question. may simplify trying accomplish.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -