How many web.config files allowed for asp.net web application?

You can have 1 per folder. So in your root you can have a web.config and in a subfolder you can have another one that overrides settings from the one in the root. web.config files are used to set settings for a certain folder and its subfolders in a cascading way, ultimately overriding the default settings that can be found in the machine.config file.