Release 1.0 - ...
<system.web> element
Specifies the root element for the ASP.NET configuration section and contains configuration elements that configure ASP.NET Web applications and control how the applications behave.
Significant child elements include httpModules and httphandler, which include configuration of the Smartsite HTTP modules and handlers.
For the full ASP.NET Settings schema for the system.web element, visit the msdn site.
Example
XML |
Copy Code
|
<system.web>
<httpRuntime executionTimeout="3600" />
<pages>
<controls>
<add tagPrefix="cms" assembly="Smartsite.AspNet.Bridge" namespace="Smartsite.AspNet.Bridge"/>
</controls>
</pages>
<compilation debug="False" />
<machineKey validationKey="..." decryptionKey="..." validation="SHA1"/>
<authentication mode="Forms">
<forms loginUrl="/Login" name="Smartsite"/>
</authentication>
<authorization>
<allow users="*"/>
</authorization>
<membership defaultProvider="SqlMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add applicationName="Smartsite" name="SqlMembershipProvider"
type="Smartsite.Security.Authentication.SqlMembershipProvider, Smartsite.Security"
enablePasswordRetrieval="true" enablePasswordReset="true" passwordFormat="Clear"
requiresQuestionAndAnswer="false" writeExceptionsToEventLog="true"/>
</providers>
</membership>
<roleManager defaultProvider="SqlRoleProvider" enabled="true" cacheRolesInCookie="true"
cookieName=".ASPROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false"
cookieSlidingExpiration="true" cookieProtection="All">
<providers>
<clear/>
<add applicationName="Smartsite" name="SqlRoleProvider"
type="Smartsite.Security.Authorization.SqlRoleProvider, Smartsite.Security"
connectionStringName="SmartsiteDbConnection" writeExceptionsToEventLog="false"/>
</providers>
</roleManager>
<customErrors handleErrors="true" mode="On" defaultRedirect="/Error.html">
<error statusCode="404" redirect="/FileNotFound.html"/>
<error statusCode="404" channel="NLD" redirect="/BestandNietGevonden.html"/>
<error statusCode="404" channel="FRA" redirect="/DocumentNExistePas.html"/>
</customErrors>
<httpModules>
<add type="Smartsite.AspNet.Bridge.Hook,Smartsite.AspNet.Bridge" name="ixbridge"/>
<add type="Smartsite.ImageProcessor.ImageServerModule,Smartsite.ImageProcessor" name="ImageServer"/>
<add type="Smartsite.Pdf.PdfModule,Smartsite.Pdf" name="PdfModule"/>
<add type="Smartsite.ManagementInformation.SmiClient,Smartsite.ManagementInformation" name="ManagementInformation"/>
</httpModules>
<httpHandlers>
<add verb="*" path="*/*.net" type="Smartsite.AspNet.Bridge.Handler,Smartsite.AspNet.Bridge"/>
<add verb="*" path="*/res/*" type="Smartsite.AspNet.Bridge.ResourceHandler,Smartsite.AspNet.Bridge"/>
<add verb="*" path="*/res/*/*" type="Smartsite.AspNet.Bridge.ResourceHandler,Smartsite.AspNet.Bridge"/>
</httpHandlers>
</system.web>
|
Attributes
None.
Parent element
Element name |
Description |
<configuration> |
Root element of the web.config file. |
Child elements
Element name |
Description |
<httpModules> |
Configures the HTTP modules within an application. |
<httpHandlers> |
Maps incoming requests to the appropriate handler according to the URL and the HTTP verb that is specified in the request. |
<healthMonitoring> |
Configures an application for health monitoring. |