SlideShare a Scribd company logo
By-Teach4u.in
Content
1. Web.config
2. Why Applications?
3. IIS
1. Role in handing a request
4. .NET
1. Applications
2. Application Object
3. Global.asax
5. Configuration files
1. Machine.config
2. Web.Config
What is Web.Config File?
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 aingle
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.
Why Applications?
Dark ages (pre-2003)
Server crashes not unusual
 Single failure bring down whole system
Worse yet:
 Memory leaks
 Cause IIS hang
 Stop serving pages
 Required manual intervention
(reboot)
Why Applications
Today (Windows Server 2003 & later)
Applications still crash
 Applications are compartmentalized
 OS handles gracefully
System rarely affected
OS monitors application health
 Recycles unhealthy processes
Result: system stable & reliable
IIS Overview
IIS Applications
Folders may be configured as “Applications”
IIS configuration interface
Each application is assigned to an Application Pool
 Each application pool has a unique Windows process
Specify error handling, timeouts, etc. for each application
Benefit:
Compartmentalize applications
Reduces dependencies
 Improves reliability
Allows application specific settings
 Error handling, log files, filters, headers, timeouts…
 100’s of settings
Applications Settings
Configuration settings:
Web.config
 Application level settings
 Located in root folder
Machine.config
 Settings common to all applications
Application event handlers
Global.asax file
 Located in root folder
ASP.NET Configuration
.config files
Hierarchical configuration
Similar to CSS
 Inheritance
 Child has precedence over parent
Machine.config
Rarely need to modify
Web.Config
XML file
Case sensitive
Camel casing
Configure:
Application settings
Error handling
Timeouts
Sessions…etc. etc.
Authentication
documentation
Security
.config files not served
Global.asax
Handles application & session events
15+ events
Application_start
Application_error
Session_start
Located in root folder of application
Triggered each page request
Optional
Global.asax
Example:
Create new application on server
web.config: source
global.asax: source
TestPage.aspx: source, output
Summary
Configuration Objectives:
 Flexibility
 Security
 Reliability
 Convenience
IIS
 Handles requests
Application
 Application object
 Events: global.asax
Configuration
 Machine.config
 Web.config

More Related Content

Viewers also liked (11)

El fuero constitucional
El fuero constitucionalEl fuero constitucional
El fuero constitucional
 
Bordes Igualados en Crochet / Ganchillo
Bordes Igualados en Crochet / GanchilloBordes Igualados en Crochet / Ganchillo
Bordes Igualados en Crochet / Ganchillo
 
Carta a mis hermanos los cristianos.
Carta a mis hermanos los cristianos.Carta a mis hermanos los cristianos.
Carta a mis hermanos los cristianos.
 
Excusive managing director
Excusive managing directorExcusive managing director
Excusive managing director
 
Matriz de valoración del portafolio interactivo digital nancy
Matriz de valoración del portafolio interactivo digital nancyMatriz de valoración del portafolio interactivo digital nancy
Matriz de valoración del portafolio interactivo digital nancy
 
Film distribution research
Film distribution researchFilm distribution research
Film distribution research
 
El autoestima
El autoestimaEl autoestima
El autoestima
 
захист вітчизни (гела оксана)
захист вітчизни (гела оксана)захист вітчизни (гела оксана)
захист вітчизни (гела оксана)
 
Tema 6 apartado 1 y 2
Tema 6 apartado 1 y 2 Tema 6 apartado 1 y 2
Tema 6 apartado 1 y 2
 
Michael_Lafleur_Resume_15_Computer_v2
Michael_Lafleur_Resume_15_Computer_v2Michael_Lafleur_Resume_15_Computer_v2
Michael_Lafleur_Resume_15_Computer_v2
 
PEDDINGHAUS BROCHURE
PEDDINGHAUS BROCHUREPEDDINGHAUS BROCHURE
PEDDINGHAUS BROCHURE
 

Similar to security configuration

Ch 04 asp.net application
Ch 04 asp.net application Ch 04 asp.net application
Ch 04 asp.net application
Madhuri Kavade
 
IIS 6 - General System Administration Overview
IIS 6 - General System Administration OverviewIIS 6 - General System Administration Overview
IIS 6 - General System Administration Overview
Information Technology
 
The java enterprise edition (Servlet Basic)
The java enterprise edition (Servlet Basic)The java enterprise edition (Servlet Basic)
The java enterprise edition (Servlet Basic)
Atul Saurabh
 

Similar to security configuration (20)

asp.net Webconfiguration
asp.net Webconfigurationasp.net Webconfiguration
asp.net Webconfiguration
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Ch 04 asp.net application
Ch 04 asp.net application Ch 04 asp.net application
Ch 04 asp.net application
 
Top_Five_problems_In_EBS_Administration.pdf
Top_Five_problems_In_EBS_Administration.pdfTop_Five_problems_In_EBS_Administration.pdf
Top_Five_problems_In_EBS_Administration.pdf
 
IIS 6.0 and asp.net
IIS 6.0 and asp.netIIS 6.0 and asp.net
IIS 6.0 and asp.net
 
Tips on successfully upgrading to apps 11i for the non apps dba
Tips on successfully upgrading to apps 11i for the non apps dbaTips on successfully upgrading to apps 11i for the non apps dba
Tips on successfully upgrading to apps 11i for the non apps dba
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 
Maintaining and Caring for your EPM Environment at Medinah 2013
Maintaining and Caring for your EPM Environment at Medinah 2013Maintaining and Caring for your EPM Environment at Medinah 2013
Maintaining and Caring for your EPM Environment at Medinah 2013
 
File based approach
File based approachFile based approach
File based approach
 
ASP.NET Unit-2.pdf
ASP.NET Unit-2.pdfASP.NET Unit-2.pdf
ASP.NET Unit-2.pdf
 
Road Show Asp Net
Road Show Asp NetRoad Show Asp Net
Road Show Asp Net
 
Iis it-slideshares.blogspot.com
Iis it-slideshares.blogspot.comIis it-slideshares.blogspot.com
Iis it-slideshares.blogspot.com
 
Power point 707 tips on successfully upgrading apps 11i for the non apps dba
Power point 707 tips on successfully upgrading apps 11i for the non apps dbaPower point 707 tips on successfully upgrading apps 11i for the non apps dba
Power point 707 tips on successfully upgrading apps 11i for the non apps dba
 
Asp.net+interview+questions+and+answers
Asp.net+interview+questions+and+answersAsp.net+interview+questions+and+answers
Asp.net+interview+questions+and+answers
 
IIS 7.0 +
IIS 7.0 +IIS 7.0 +
IIS 7.0 +
 
IIS 6 - General System Administration Overview
IIS 6 - General System Administration OverviewIIS 6 - General System Administration Overview
IIS 6 - General System Administration Overview
 
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
SharePoint Saturday Michigan Keynote - Top 5 Infrastructure Concerns for a Sh...
 
The java enterprise edition (Servlet Basic)
The java enterprise edition (Servlet Basic)The java enterprise edition (Servlet Basic)
The java enterprise edition (Servlet Basic)
 
SpiraTeam High Availability and Backup & Recovery Information
SpiraTeam High Availability and Backup & Recovery InformationSpiraTeam High Availability and Backup & Recovery Information
SpiraTeam High Availability and Backup & Recovery Information
 

More from teach4uin (20)

Controls
ControlsControls
Controls
 
validation
validationvalidation
validation
 
validation
validationvalidation
validation
 
Master pages
Master pagesMaster pages
Master pages
 
.Net framework
.Net framework.Net framework
.Net framework
 
Scripting languages
Scripting languagesScripting languages
Scripting languages
 
Css1
Css1Css1
Css1
 
Code model
Code modelCode model
Code model
 
Asp db
Asp dbAsp db
Asp db
 
State management
State managementState management
State management
 
static dynamic html tags
 static dynamic html tags static dynamic html tags
static dynamic html tags
 
static dynamic html tags
static dynamic html tagsstatic dynamic html tags
static dynamic html tags
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentation
 
.Net overview
.Net overview.Net overview
.Net overview
 
Stdlib functions lesson
Stdlib functions lessonStdlib functions lesson
Stdlib functions lesson
 
enums
enumsenums
enums
 
memory
memorymemory
memory
 
array
arrayarray
array
 
storage clas
storage classtorage clas
storage clas
 
Cprogrammingprogramcontrols
CprogrammingprogramcontrolsCprogrammingprogramcontrols
Cprogrammingprogramcontrols
 

Recently uploaded

Recently uploaded (20)

Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Forest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDFForest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDF
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 

security configuration

  • 2. Content 1. Web.config 2. Why Applications? 3. IIS 1. Role in handing a request 4. .NET 1. Applications 2. Application Object 3. Global.asax 5. Configuration files 1. Machine.config 2. Web.Config
  • 3. What is Web.Config File? 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 aingle 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.
  • 4. Why Applications? Dark ages (pre-2003) Server crashes not unusual  Single failure bring down whole system Worse yet:  Memory leaks  Cause IIS hang  Stop serving pages  Required manual intervention (reboot)
  • 5. Why Applications Today (Windows Server 2003 & later) Applications still crash  Applications are compartmentalized  OS handles gracefully System rarely affected OS monitors application health  Recycles unhealthy processes Result: system stable & reliable
  • 7. IIS Applications Folders may be configured as “Applications” IIS configuration interface Each application is assigned to an Application Pool  Each application pool has a unique Windows process Specify error handling, timeouts, etc. for each application Benefit: Compartmentalize applications Reduces dependencies  Improves reliability Allows application specific settings  Error handling, log files, filters, headers, timeouts…  100’s of settings
  • 8. Applications Settings Configuration settings: Web.config  Application level settings  Located in root folder Machine.config  Settings common to all applications Application event handlers Global.asax file  Located in root folder
  • 9. ASP.NET Configuration .config files Hierarchical configuration Similar to CSS  Inheritance  Child has precedence over parent Machine.config Rarely need to modify
  • 10. Web.Config XML file Case sensitive Camel casing Configure: Application settings Error handling Timeouts Sessions…etc. etc. Authentication documentation Security .config files not served
  • 11. Global.asax Handles application & session events 15+ events Application_start Application_error Session_start Located in root folder of application Triggered each page request Optional
  • 12. Global.asax Example: Create new application on server web.config: source global.asax: source TestPage.aspx: source, output
  • 13. Summary Configuration Objectives:  Flexibility  Security  Reliability  Convenience IIS  Handles requests Application  Application object  Events: global.asax Configuration  Machine.config  Web.config