ASP.NET Configuration Web.Config Files Elements
http://www.csharpfriends.com
World's Greatest C# Community    
Home Articles C# Forums Books C# Syntax C# Spec C# Jobs free Source Code Advertise About
 

Control Panel

[ Sign In / register ]
Points   
Notes 
My Forums
My Tutorials
My Profile

Resources

Learn
 Articles
 QuickStarts
 C# Spec
 Whitepapers
 Tools
 Class Browser
 C# Code Generator
 Links
 Misc Rss Feeds
 Code Highlight
 411 Directory
 FREE magazines
 freevb.net

Reviews
  ASP.NET Hosting

Source Code
 Get Version 1.0



C# Consulting
AspDotNetStoreFront
Chapter:   UnCategorized
Current Lesson:
ASP.NET Configuration Web.Config Files Elements
[Latest Content]
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ALL
[prev. Lesson]  Visual Basic .NET Syntax Reference Primer [next Lesson]  Teach Yourself: ASP.NET 2.0 in 24 hours
ASP.NET Configuration Web.Config Files Elements
  by: webmaster

The elements in this schema tell us how our ASP.NET web application is going to behave.

Note: Default values are for your server can be found in your Machine.Config file that is located in ..\Microsfot.Net\Framework\version#\config\Machine.config

The root element of your configuration file is <configuration>:

<configuration>
</configuration>

The following is a overview of all the XMl files Elements (Schema) in your Web.Config file:

<configuration>
   <location>
      <system.web>
         <authentication>
            <forms>
               <credentials>
            <passport>
         <authorization>
            <allow>
            <deny>
         <browserCaps>
            <result>
            <use>
            <filter>
               <case>
         <clientTarget>
            <add>
            <remove>
            <clear>
         <compilation>
            <compilers>
               <compiler>
            <assemblies>
               <add>
               <remove>
               <clear>
         <customErrors>
            <error>
         <globalization>
         <httpHandlers>
            <add>
            <remove>
            <clear>
         <httpModules>
            <add>
            <remove>
            <clear>
         <httpRuntime>
         <identity>
         <machineKey>
         <pages>
         <processModel>
         <securityPolicy>
            <trustLevel>
         <sessionState>
         <trace>
         <trust>
         <webServices>
            <protocols>
               <add>
               <remove>
               <clear>
            <serviceDescriptionFormatExtensionTypes>
               <add>
               <remove>
               <clear>
            <soapExtensionTypes>
               <add>
               <clear>
            <soapExtensionReflectorTypes>
               <add>
               <clear>
            <soapExtensionImporterTypes>
               <add>
               <clear>
            <WsdlHelpGenerator>
         </webServices>
      </system.web>
   </location>
</configuration>

Configuration files as you know are in XML format. The actual schema for all three of Machine Configuration files, Application configuration and security configuration files is broken down to the following elements:

The child elements are:

  1. Startup

    This setting specifies what version of the CLR your application will run

    Elements include: requiredRuntime, supportedRuntime

  2. Runtime

    The runtime settings specificy how the CLR will handle garbage collection along with the version of the assembly to use

    Elements include: assemblybinding, assemblyIdentity, bindingRedirect, codeBase, dependantAssembly, devleopmentMode, gcConcurrent, probling, publisherPolicy, qualifyAssembly, runtime

  3. Remoting

    This section allows you to put custom settings in remoting application configuration files

    Elements include: system.runtime.remoting, application, lifetime, channels, serverProviders, formatter, client, wellknown, activiated, service, interopXmlType, preload, channelSinkProviders, provider, debug and customErrors

  4. Network Settings

    Determines how the .NET framework will connect to the internet.

    Elements include: authenticationModules, connectionModules, defaultProxy, system.net, webRequestModules

  5. Cryptography

    Specifies how to map algorithm names to classes that implement the cryptography algorithms.

    Elements include: cryptoClasses, cryptoClass, cryptoghraphySettings, mscorlib, nameEntry, oidEntry, oidMap

  6. Configuration Sections

    Elements for custom settings in configuration files

    Elements include: add, appSettings, clear, configSections, remove, section, sectionGroup

  7. Trace and Debug Settings

    Tracing and Debugging settings that specify how trace listerners will collection and route messages and also at what levels the tracing listerners are set

    Elements include: add, assert, listeners, remove, switches, system.diagnostics, trace

  8. ASP.NET Settings

    Contains elements that control how your ASP.NET Web application will react. Please refer to your machine.config for default settings.

    Elements include: system.web, add, allow, assemblies, authentication, authorization, broswerCaps, case, clear, clientTarget, compilation, compiler, credentials, customErrors, deny, error, filter, forms, globalization, httpHandlers, httpModules, httpRuntime, identity, location, machineKey, pages, passport, processModel, protocols, remove, result, securityPolicy, sessionState, soapExtensionImporterTypes, soapExtensionReflectorTypes, soapExtensionTypes, trace, trust, trustLevel, use, user, webServices, WsdlHepGenerator.


1 


Build Your Own ASP.NET Website Using C# & VB.NET

Chapter:  UnCategorized
Current Lesson:
ASP.NET Configuration Web.Config Files Elements
[Latest Content]
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ALL
[prev. Lesson]  Visual Basic .NET Syntax Reference Primer [next Lesson]  Teach Yourself: ASP.NET 2.0 in 24 hours


Today's Top Movers
vulpes 6800
MadHatter 2220
jal 867
Jeff1203 857
muster 791

Yesterday Top Movers
shakti sin.. 9
MadHatter 3
C#fanatic 2
Al_Pennywo.. 2
eluvan 1

Monthly Leaders
vulpes 6800
MadHatter 2260
jal 867
Jeff1203 857
muster 791

Top Members
mosessaur 18457
Rincewind 7074
stanleytan 6995
vulpes 6800
Gsuttie 6046

Great Offers
.net hosting
Go To My Pc
Remote Pc Control
zonealarm
spam blocker
web hosting directory
ad server   C#
snadtech GoToMyPc

Top of Page

Advertise | About | Link To Us | Privacy Notice Copyright © 2003 - 2005 CSharpFriends.com  All Rights Reserved  Visual C# Developer Center