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
Post a Comment