asp.net Webconfiguration

Please download to get full document.

View again

of 11
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Information Report
Category:

Education

Published:

Views: 0 | Pages: 11

Extension: PDF | Download: 0

Share
Related documents
Description
understanding about the basic web configuration in asp.net and web technology.
Transcript
  • 1. Understanding about Web.Config ASP.NE T by, Mashila Mani.P 16spcs02 M.Sc(CS) 1st year
  • 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.
  • 7. Web.Config
  • 8. Web.Config
  • 9. Web.Config
  • 10. Web.Config File Location :
  • 11. Web.Config Web.config file :
  • We Need Your Support
    Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

    Thanks to everyone for your continued support.

    No, Thanks
    SAVE OUR EARTH

    We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

    More details...

    Sign Now!

    We are very appreciated for your Prompt Action!

    x