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

Let's say I have an existing application written using vb6 and this application utilizes windows 2000 com+ transaction services. How would you approach migrating this application to.net?

705


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

746


How can we provide the WebParts control functionality to a server control?

753


What’s the catch?

821


If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?

757






What can you do with asp.net?

676


Explain what are delegates?

805


What is a proxy in web service?

755


How to make paging concepts in datagrid in ASP.NET?

731


Name the namespace which is used by ado.net?

698


How will create assesblies at run time?

731


What is form method?

678


Is it possible to write code in many languages in one asp.net project?

743


What are the differences between clr & cts?

716


How to deploy/publish webservices?How many ways?Plz explain me

2024