Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/WebSites/OKB/Web.config @ 4571

Last change on this file since 4571 was 4476, checked in by cfleisch, 14 years ago

Create repository (#1198)

File size: 10.9 KB
Line 
1<?xml version="1.0"?>
2<!--
3    Note: As an alternative to hand editing this file you can use the
4    web admin tool to configure settings for your application. Use
5    the Website->Asp.Net Configuration option in Visual Studio.
6    A full list of settings and comments can be found in
7    machine.config.comments usually located in
8    \Windows\Microsoft.Net\Framework\v2.x\Config
9-->
10<configuration>
11  <configSections>
12    <sectionGroup name="compositeWeb">
13      <section name="modules" type="Microsoft.Practices.CompositeWeb.Configuration.ModulesConfigurationSection, Microsoft.Practices.CompositeWeb"/>
14      <section name="authorization" type="Microsoft.Practices.CompositeWeb.Configuration.AuthorizationConfigurationSection, Microsoft.Practices.CompositeWeb"/>
15    </sectionGroup>
16    <section name="securityConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Security.Configuration.SecuritySettings, Microsoft.Practices.EnterpriseLibrary.Security, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
17    <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
18    <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
19  </configSections>
20    <location path="LoginForm.aspx">
21        <system.web>
22            <authorization>
23                <allow users="*"/>
24            </authorization>
25        </system.web>
26    </location>
27    <location path="Default.aspx">
28        <system.web>
29            <authorization>
30                <allow users="*"/>
31            </authorization>
32        </system.web>
33    </location>
34  <appSettings/>
35  <connectionStrings/>
36  <compositeWeb>
37    <modules>
38      <module name="Shell" assemblyName="Shell" virtualPath="~/"/>
39    </modules>
40  </compositeWeb>
41  <securityConfiguration defaultAuthorizationInstance="RuleProvider" defaultSecurityCacheInstance="">
42    <authorizationProviders>
43      <add type="Microsoft.Practices.EnterpriseLibrary.Security.AuthorizationRuleProvider, Microsoft.Practices.EnterpriseLibrary.Security, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="RuleProvider">
44        <rules>
45          <!-- Add your own rules here:
46          e.g.:
47              <add expression="R:Customer" name="AllowViewAccountsSummary"/>         
48          -->
49        </rules>
50      </add>
51    </authorizationProviders>
52  </securityConfiguration>
53  <loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory="General" logWarningsWhenNoCategoriesMatch="true">
54    <listeners>
55      <add source="Enterprise Library Logging" formatter="Text Formatter" log="Application" machineName="" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="Formatted EventLog TraceListener"/>
56    </listeners>
57    <formatters>
58      <add template="Timestamp: {timestamp}&#xA;Message: {message}&#xA;Category: {category}&#xA;Priority: {priority}&#xA;EventId: {eventid}&#xA;Severity: {severity}&#xA;Title:{title}&#xA;Machine: {machine}&#xA;Application Domain: {appDomain}&#xA;Process Id: {processId}&#xA;Process Name: {processName}&#xA;Win32 Thread Id: {win32ThreadId}&#xA;Thread Name: {threadName}&#xA;Extended Properties: {dictionary({key} - {value}&#xA;)}" type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="Text Formatter"/>
59    </formatters>
60    <categorySources>
61      <add switchValue="All" name="General">
62        <listeners>
63          <add name="Formatted EventLog TraceListener"/>
64        </listeners>
65      </add>
66    </categorySources>
67    <specialSources>
68      <allEvents switchValue="All" name="All Events"/>
69      <notProcessed switchValue="All" name="Unprocessed Category"/>
70      <errors switchValue="All" name="Logging Errors &amp; Warnings">
71        <listeners>
72          <add name="Formatted EventLog TraceListener"/>
73        </listeners>
74      </errors>
75    </specialSources>
76  </loggingConfiguration>
77  <exceptionHandling>
78    <exceptionPolicies>
79      <add name="GlobalExceptionLogger">
80        <exceptionTypes>
81          <add type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="None" name="Exception">
82            <exceptionHandlers>
83              <add logCategory="General" eventId="100" severity="Error" title="Enterprise Library Exception Handling" formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" priority="0" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="Logging Handler"/>
84            </exceptionHandlers>
85          </add>
86        </exceptionTypes>
87      </add>
88    </exceptionPolicies>
89  </exceptionHandling>
90  <system.web>
91    <!--
92            Set compilation debug="true" to insert debugging
93            symbols into the compiled page. Because this
94            affects performance, set this value to true only
95            during development.
96        -->
97    <compilation debug="true" targetFramework="4.0">
98    </compilation>
99    <!--
100            The <authentication> section enables configuration
101            of the security authentication mode used by
102            ASP.NET to identify an incoming user.
103        -->
104        <authorization>
105            <deny users="?"/>
106        </authorization>
107        <authentication mode="Forms">
108            <forms name="LoginForm" loginUrl="LoginForm.aspx"></forms>
109        </authentication>
110    <!--
111            The <customErrors> section enables configuration
112            of what to do if/when an unhandled error occurs
113            during the execution of a request. Specifically,
114            it enables developers to configure html error pages
115            to be displayed in place of a error stack trace.
116        -->
117    <customErrors mode="RemoteOnly">
118      <error statusCode="403" redirect="~/Errors/AccessDenied.htm"/>
119    </customErrors>
120    <siteMap defaultProvider="DefaultSiteMapProvider" enabled="true">
121      <providers>
122        <add name="DefaultSiteMapProvider" type="Microsoft.Practices.CompositeWeb.Providers.ModuleSiteMapProvider, Microsoft.Practices.CompositeWeb" securityTrimmingEnabled="true"/>
123      </providers>
124    </siteMap>
125    <pages styleSheetTheme="Default">
126      <controls>
127        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
128        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
129      </controls>
130    </pages>
131    <httpHandlers>
132      <remove verb="*" path="*.asmx"/>
133      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
134      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
135      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
136    </httpHandlers>
137    <httpModules>
138      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
139      <add name="WebClientAuthorizationModule" type="Microsoft.Practices.CompositeWeb.Authorization.WebClientAuthorizationModule, Microsoft.Practices.CompositeWeb"/>
140      <add name="ExceptionLoggerHttpModule" type="Microsoft.Practices.CompositeWeb.EnterpriseLibrary.ExceptionLogger, Microsoft.Practices.CompositeWeb.EnterpriseLibrary"/>
141    </httpModules>
142  </system.web>
143  <system.codedom>
144    <compilers>
145      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
146        <providerOption name="CompilerVersion" value="v4.0"/>
147        <providerOption name="WarnAsError" value="false"/>
148      </compiler>
149      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
150        <providerOption name="CompilerVersion" value="v4.0"/>
151        <providerOption name="OptionInfer" value="true"/>
152        <providerOption name="WarnAsError" value="false"/>
153      </compiler>
154    </compilers>
155  </system.codedom>
156  <!--
157        The system.webServer section is required for running ASP.NET AJAX under Internet
158        Information Services 7.0.  It is not necessary for previous version of IIS.
159    -->
160  <system.webServer>
161    <validation validateIntegratedModeConfiguration="false"/>
162    <modules>
163      <remove name="ScriptModule"/>
164      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
165    </modules>
166    <handlers>
167      <remove name="WebServiceHandlerFactory-Integrated"/>
168      <remove name="ScriptHandlerFactory"/>
169      <remove name="ScriptHandlerFactoryAppServices"/>
170      <remove name="ScriptResource"/>
171      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
172      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
173      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
174    </handlers>
175  </system.webServer>
176</configuration>
Note: See TracBrowser for help on using the repository browser.