What is web.config. How many web.config files can be allowed
to use in an application?

Answer Posted / mohanraj

The ASP.NET Web.config file is used to define the
configuration settings for an ASP.NET application. ASP.NET
and the .NET Framework use .config files to define all
configuration options. The .config files, including the
ASP.NET Web.config file, are XML files.

Server-wide configuration settings for the .NET Framework
are defined in a file called Machine.config. The settings
in the Machine.config file can be changed and those
settings affect all .NET applications on the server.

Different ASP.NET applications might need different
application settings, that’s why defining those settings in
the Machine.config file, is usually not practical. The
solution for this problem is the ASP.NET Web.config file.

The ASP.NET application configuration settings can be
changed by creating a file called Web.config and saving it
in the root folder of the application. But what if the
Machine.config file defines different settings than the
ones defined in your Web.config file? The good news is that
the settings in the Web.config file override the settings
in the Machine.config file.
There can be more than one web.config file .

Is This Answer Correct ?    31 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the code Access Security (CAS) in .net Framework?

981


Explain about Multi-Language integration?

814


What are the different types of Caching techniques in ASP.NET?

797


What is state management in .net?

836


What is the difference between a multi-layer and multi-tier applications?

801


When should I use server transfer and response redirect?

735


What is a SESSION and APPLICATION object?

789


Which validator control you use if you need to make sure the values in two different controls matched?

860


What are app services?

746


Where is the view state data stored?

783


benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks

1880


What are asp.net web forms?

767


Where sessions are stored in asp.net?

765


What is viewstate information stored?

855


How to handle errors in Web API?

885