I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?



I have created a configuration setting in my web.config and have kept it at the root level. How do I..

Answer / Dheeraj Kumar Singh

"To prevent your web.config settings from being overridden, move your configuration file to a higher location in the application directory structure or explicitly set the inheritInChildApplications attribute to 'false' within your web.config file. This will ensure that child applications (folders) do not inherit any settings from your root web.config."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What's the advantage of using System.Text.StringBuilder over System.String?

3 Answers   IBM, IdeaLake, Infosys,


How will you load dynamic assembly?

1 Answers  


Is string a value type or a reference type?

13 Answers  


What namespaces are imported by default in ASMX files?

2 Answers  


Name the two properties are on every validation control?

1 Answers  


How to change Master page in ASP.Net using code?

1 Answers   HCL,


What is the difference between “Web.config” and “Machine.Config”?

1 Answers  


How to Insert/Add in ASPXgridview

1 Answers   Infosys,


What is a user developed application?

1 Answers  


What is the difference between CLICK and MOUSE DOWN Event ?

1 Answers   MCN Solutions,


Explain about asp.net state management?

1 Answers  


How do we sort the data from a dataset?

1 Answers  


Categories