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
Where is asp.net session stored?
What is the difference between a multi-layer and multi-tier applications?
What are session and cookies?
where can i gather the materials for MCP certification
Explain the difference between value type and reference type?
Explain how can you debug your .net application?
Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc
what are the Custom controls in asp.net?
Describe a bubbled event and how it is used ?
What are sessions and cookies?
Explain exception handling in .net.
Explain the difference between asp.net mvc and asp.net webforms
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.
Where is asp.net view state stored?