blah blah blah is here! blah blah » Close

up0down
link

Suppose i have multiple folders in my application, and i have keeping one web.config file in each folder. is it possible? plz. help me in this regard.

last answered 2 years ago

1 answers

up0down
link

You can have one web.config file for each folder in your application, but the web.config in the root folder will be your primary config file. The others can only change the settings of certain properties, eg: security settings (access or deny users or roles). Global properties, such as session management, can only be set in the primary web.config file. Visual Studio will tell you if you are trying to alter the wrong settings in sub-files.
Remember to only include the settings that you want to be different from the parent or primary config file - delete everything else.
Cheers

This post was imported from csharpfriends, if you have a similiar question please ask it again.

All previous members have been migrated, hope you enjoy the new platform!

Feedback