SlideShare a Scribd company logo
Understanding
about
Web.Config
ASP.NE
T
by,
Mashila Mani.P
16spcs02
M.Sc(CS) 1st
year
What is Web.Config
File?
Web.Config
Configuration file is used to manage various
settings that define a website. The settings are stored in
XML files that are separate from your application code. In
this way you can configure settings independently from
your code. Generally a website contains a single
Web.config file stored inside the application root directory.
However there can be many configuration files that
manage settings at various levels within an application.
Web.Config
Each file is an XML file (with the extension .config)
that contains a set of configuration elements.
Configuration information is stored in XML-based text
files.
Benefits of XML-based Configuration files
• ASP.NET Configuration system is extensible and
application specific information can be stored and
retrieved easily. It is human readable.
• You need not restart the web server when the
settings are changed in configuration file. ASP.NET
automatically detects the changes and applies them to
the running ASP.NET application.
Web.Config
• You can use any standard text editor or XML
parser to create and edit ASP.NET configuration files.
What Web.config file contains?
There are number of important settings that can be
stored in the configuration file. Some of the most
frequently used configurations, stored conveniently inside
Web.config file are:
Database connections
Caching settings
Session States
Error Handling
Security
Web.Config
Different types of Configuration files
Machine.config: Server or machine-wide configuration
file
Web.config: Application configuration files which deal
with a single application
Processing of a Web.config file
When you initially run your web application, the
runtime builds a cache of the configuration settings for
your web application by flattening the layer of
configuration files as below:
Web.Config
 The Machine.config file settings are retrieved.
 The settings from the root Web.config files are added
to the caches, overwriting any conflicting settings
that were earlier while reading the Machine.config
file.
 If there is a Web.config file at the root of the website,
this file is read into the cache, all overwriting any
existing settings. The resulting cache contains the
setting for this website.
 If you have subdirectories in your web application,
each subdirectory can have a Web.config file that
includes settings that are specific to the files and
folders that are contained within the subdirectory.
Web.Config
Web.Config
Web.Config
Web.Config
File Location :
Web.Config
Web.config file :

More Related Content

What's hot (20)

PPTX
Query processing
Ravinder Kamboj
 
PPTX
Design Pattern - Singleton Pattern
Mudasir Qazi
 
PPTX
Advance Java Topics (J2EE)
slire
 
PPTX
Implementation levels of virtualization
Gokulnath S
 
PDF
Machine learning Chapter 1
JagadishPogu
 
PDF
Dbms notes
Prof. Dr. K. Adisesha
 
PPTX
Validation Controls in asp.net
Deep Patel
 
PPT
Unit I Advanced Java Programming Course
parveen837153
 
PPTX
dot net technology
Imran Khan
 
PPTX
User controls
aspnet123
 
PDF
Schema Integration, View Integration and Database Integration, ER Model & Dia...
Mobarok Hossen
 
PPTX
Architectural structures and views
Dr Reeja S R
 
PDF
Triggers and active database
BalaMuruganSamuthira
 
DOCX
Entity relationship diagram (erd)
Imran Hossain
 
PPTX
Architectural styles and patterns
deep sharma
 
PPT
Apache ppt
Sanmuga Nathan
 
PPT
7. Key-Value Databases: In Depth
Fabio Fumarola
 
PDF
A Day In The Life Of A Linux Administrator
Edureka!
 
PPT
Chapter07 Advanced File System Management
Raja Waseem Akhtar
 
PPT
System Models in Software Engineering SE7
koolkampus
 
Query processing
Ravinder Kamboj
 
Design Pattern - Singleton Pattern
Mudasir Qazi
 
Advance Java Topics (J2EE)
slire
 
Implementation levels of virtualization
Gokulnath S
 
Machine learning Chapter 1
JagadishPogu
 
Validation Controls in asp.net
Deep Patel
 
Unit I Advanced Java Programming Course
parveen837153
 
dot net technology
Imran Khan
 
User controls
aspnet123
 
Schema Integration, View Integration and Database Integration, ER Model & Dia...
Mobarok Hossen
 
Architectural structures and views
Dr Reeja S R
 
Triggers and active database
BalaMuruganSamuthira
 
Entity relationship diagram (erd)
Imran Hossain
 
Architectural styles and patterns
deep sharma
 
Apache ppt
Sanmuga Nathan
 
7. Key-Value Databases: In Depth
Fabio Fumarola
 
A Day In The Life Of A Linux Administrator
Edureka!
 
Chapter07 Advanced File System Management
Raja Waseem Akhtar
 
System Models in Software Engineering SE7
koolkampus
 

Similar to asp.net Webconfiguration (20)

PPT
security configuration
teach4uin
 
PPTX
Asp .net folders and web.config
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Asp folders and web configurations
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Asp .net folders and web.config
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Introducing asp
aspnet123
 
PPS
Net framework session03
Niit Care
 
PPTX
Chapter 5
application developer
 
PDF
CTU June 2011 - Things that Every ASP.NET Developer Should Know
Spiffy
 
PPS
06 asp.net session08
Niit Care
 
PDF
Олексій Калініченко — Configuration Management in Drupal8
LEDC 2016
 
PPT
2310 b 15
Krazy Koder
 
PPT
2310 b 15
Krazy Koder
 
PDF
ASP.NET Unit-2.pdf
abiraman7
 
PPT
SynapseIndia dotnet website security development
Synapseindiappsdevelopment
 
PPS
01 asp.net session01
Mani Chaubey
 
PPT
Windows Server 2008
Luis Quiroz
 
PPT
Your First ASP.Net Project Part-2
Biswadip Goswami
 
PPT
Your First ASP_Net Project Part - 2
Biswadip Goswami
 
security configuration
teach4uin
 
Asp .net folders and web.config
baabtra.com - No. 1 supplier of quality freshers
 
Asp folders and web configurations
baabtra.com - No. 1 supplier of quality freshers
 
Asp .net folders and web.config
baabtra.com - No. 1 supplier of quality freshers
 
Introducing asp
aspnet123
 
Net framework session03
Niit Care
 
CTU June 2011 - Things that Every ASP.NET Developer Should Know
Spiffy
 
06 asp.net session08
Niit Care
 
Олексій Калініченко — Configuration Management in Drupal8
LEDC 2016
 
2310 b 15
Krazy Koder
 
2310 b 15
Krazy Koder
 
ASP.NET Unit-2.pdf
abiraman7
 
SynapseIndia dotnet website security development
Synapseindiappsdevelopment
 
01 asp.net session01
Mani Chaubey
 
Windows Server 2008
Luis Quiroz
 
Your First ASP.Net Project Part-2
Biswadip Goswami
 
Your First ASP_Net Project Part - 2
Biswadip Goswami
 
Ad

Recently uploaded (20)

PPTX
Difference between write and update in odoo 18
Celine George
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PPTX
TRANSLATIONAL AND ROTATIONAL MOTION.pptx
KIPAIZAGABAWA1
 
PDF
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Difference between write and update in odoo 18
Celine George
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
TRANSLATIONAL AND ROTATIONAL MOTION.pptx
KIPAIZAGABAWA1
 
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Controller Request and Response in Odoo18
Celine George
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Introduction presentation of the patentbutler tool
MIPLM
 
epi editorial commitee meeting presentation
MIPLM
 
Introduction to Indian Writing in English
Trushali Dodiya
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Ad

asp.net Webconfiguration

  • 2. What is Web.Config File? Web.Config Configuration file is used to manage various settings that define a website. The settings are stored in XML files that are separate from your application code. In this way you can configure settings independently from your code. Generally a website contains a single Web.config file stored inside the application root directory. However there can be many configuration files that manage settings at various levels within an application.
  • 3. Web.Config Each file is an XML file (with the extension .config) that contains a set of configuration elements. Configuration information is stored in XML-based text files. Benefits of XML-based Configuration files • ASP.NET Configuration system is extensible and application specific information can be stored and retrieved easily. It is human readable. • You need not restart the web server when the settings are changed in configuration file. ASP.NET automatically detects the changes and applies them to the running ASP.NET application.
  • 4. Web.Config • You can use any standard text editor or XML parser to create and edit ASP.NET configuration files. What Web.config file contains? There are number of important settings that can be stored in the configuration file. Some of the most frequently used configurations, stored conveniently inside Web.config file are: Database connections Caching settings Session States Error Handling Security
  • 5. Web.Config Different types of Configuration files Machine.config: Server or machine-wide configuration file Web.config: Application configuration files which deal with a single application Processing of a Web.config file When you initially run your web application, the runtime builds a cache of the configuration settings for your web application by flattening the layer of configuration files as below:
  • 6. Web.Config  The Machine.config file settings are retrieved.  The settings from the root Web.config files are added to the caches, overwriting any conflicting settings that were earlier while reading the Machine.config file.  If there is a Web.config file at the root of the website, this file is read into the cache, all overwriting any existing settings. The resulting cache contains the setting for this website.  If you have subdirectories in your web application, each subdirectory can have a Web.config file that includes settings that are specific to the files and folders that are contained within the subdirectory.