home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 September / PCWorld_2003-09_cd.bin / Software / Vyzkuste / webmatrix / WebMatrix.msi / Data1.cab / _6FBD017FF796400B80910D41A58F71CA < prev    next >
Encoding:
Extensible Markup Language  |  2003-04-28  |  3.3 KB  |  91 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2.  
  3. <configuration>
  4.  
  5.     <!-- 
  6.  
  7.          The <appSettings> section is used to configure application-specific configuration 
  8.          settings.  These can be fetched from within apps by calling the 
  9.          "ConfigurationSettings.AppSettings(key)" method:
  10.  
  11.          <appSettings>
  12.             <add key="connectionstring" value="server=localhost;trusted_connection=true;database=pubs"/>
  13.          </appSettings>
  14.  
  15.     -->
  16.  
  17.     <system.web>
  18.  
  19.         <!-- 
  20.  
  21.             The <sessionState" section is used to configure session state for the application.  
  22.             It supports four modes: "Off", "InProc", "StateServer", and "SqlServer".  The 
  23.             later two modes enable session state to be stored off the web server machine - 
  24.             allowing failure redundancy and web farm session state scenarios.
  25.  
  26.             <sessionState mode="InProc"
  27.                           stateConnectionString="tcpip=127.0.0.1:42424"
  28.                           sqlConnectionString="data source=127.0.0.1;trusted_connection=true"
  29.                           cookieless="false" 
  30.                           timeout="20" />
  31.  
  32.         -->
  33.  
  34.         <!--
  35.  
  36.             The <customErrors> section enables configuration of what to do if/when an 
  37.             unhandled error occurs during the execution of a request.  Specifically, it 
  38.             enables developers to configure html error pages to be displayed in place of 
  39.             a error stack trace:
  40.  
  41.             <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  42.                <error statusCode="403" redirect="NoAccess.htm"/>
  43.                <error statusCode="404" redirect="FileNotFound.htm"/>
  44.             <customErrors>
  45.  
  46.         -->
  47.  
  48.         <!-- 
  49.  
  50.             The <authentication> section enables configuration of the security authentication 
  51.             mode used by ASP.NET to identify an incoming user.  It supports a "mode" 
  52.             attribute with four valid values: "Windows", "Forms", "Passport" and "None":  
  53.  
  54.             The <forms> section is a sub-section of the <authentication> section, 
  55.             and supports configuring the authentication values used when Forms 
  56.             authentication is enabled above:
  57.  
  58.             <authentication mode="Windows">
  59.  
  60.                     <forms name=".ASPXAUTH" 
  61.                            loginUrl="login.aspx" 
  62.                            protection="Validation" 
  63.                            timeout="999999" />
  64.  
  65.              </authentication>
  66.  
  67.         -->
  68.  
  69.  
  70.         <!--
  71.  
  72.             The <authorization> section enables developers/administrators to configure 
  73.             whether a user or role has access to a particular page or resource.  This is 
  74.             accomplished by adding "<allow>" and "<deny>" sub-tags beneath the <authorization> 
  75.             section - specifically detailing the users/roles allowed or denied access.
  76.  
  77.             Note: The "?" character indicates "anonymous" users (ie: non authenticated users).  
  78.             The "*" character indicates "all" users. 
  79.  
  80.             <authorization>
  81.                <allow users="joeuser" />
  82.                <allow roles="Admins" />
  83.                <deny users="*" />
  84.             </authorization>
  85.  
  86.         -->
  87.  
  88.     </system.web>
  89.  
  90. </configuration>
  91.