8
8
\Windows\Microsoft.Net\Framework\v2.x\Config
9
9
-->
10
10
<configuration >
11
- <configSections >
12
- <section name =" hibernate-configuration" type =" NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" requirePermission =" false" />
13
- <!-- Important under Medium Trust -->
14
- <section name =" log4net" type =" log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission =" false" />
15
- <!-- Important under Medium Trust -->
16
- <sectionGroup name =" system.web.extensions" type =" System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" >
17
- <sectionGroup name =" scripting" type =" System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" >
18
- <section name =" scriptResourceHandler" type =" System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission =" false" allowDefinition =" MachineToApplication" />
19
- <sectionGroup name =" webServices" type =" System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" >
20
- <section name =" jsonSerialization" type =" System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission =" false" allowDefinition =" Everywhere" />
21
- <section name =" profileService" type =" System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission =" false" allowDefinition =" MachineToApplication" />
22
- <section name =" authenticationService" type =" System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission =" false" allowDefinition =" MachineToApplication" />
23
- <section name =" roleService" type =" System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission =" false" allowDefinition =" MachineToApplication" /></sectionGroup ></sectionGroup ></sectionGroup ></configSections >
24
- <appSettings />
25
- <connectionStrings />
26
- <system .web>
27
- <!--
11
+ <configSections >
12
+ <section name =" hibernate-configuration" type =" NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" requirePermission =" false" />
13
+ <!-- Important under Medium Trust -->
14
+ <section name =" log4net" type =" log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission =" false" />
15
+ <!-- Important under Medium Trust -->
16
+ </configSections >
17
+ <appSettings />
18
+ <connectionStrings />
19
+ <system .web>
20
+ <!--
28
21
Set compilation debug="true" to insert debugging
29
22
symbols into the compiled page. Because this
30
23
affects performance, set this value to true only
31
24
during development.
32
25
-->
33
- <compilation debug =" true" >
34
- <assemblies >
35
- <add assembly =" System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
36
- <add assembly =" System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
37
- <add assembly =" System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
38
- <add assembly =" System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /></assemblies ></compilation >
39
- <!--
26
+ <compilation debug =" true" targetFramework =" 4.0" />
27
+ <!--
40
28
The <authentication> section enables configuration
41
29
of the security authentication mode used by
42
30
ASP.NET to identify an incoming user.
43
31
-->
44
- <authentication mode =" Windows" />
45
- <!--
32
+ <authentication mode =" Windows" />
33
+ <!--
46
34
The <customErrors> section enables configuration
47
35
of what to do if/when an unhandled error occurs
48
36
during the execution of a request. Specifically,
54
42
<error statusCode="404" redirect="FileNotFound.htm" />
55
43
</customErrors>
56
44
-->
57
- <pages enableViewState =" false" enableViewStateMac =" false" >
58
- <controls >
59
- <add tagPrefix =" asp" namespace =" System.Web.UI" assembly =" System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
60
- <add tagPrefix =" asp" namespace =" System.Web.UI.WebControls" assembly =" System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></controls ></pages >
61
- <!-- <trust level="Medium" /> -->
62
- <httpModules >
63
- <add name =" CurrentSessionModule" type =" NHibernate.Example.Web.CurrentSessionModule" />
64
- <add name =" ScriptModule" type =" System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></httpModules >
65
- <httpHandlers >
66
- <remove verb =" *" path =" *.asmx" />
67
- <add verb =" *" path =" *.asmx" validate =" false" type =" System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
68
- <add verb =" *" path =" *_AppService.axd" validate =" false" type =" System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
69
- <add verb =" GET,HEAD" path =" ScriptResource.axd" validate =" false" type =" System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></httpHandlers ></system .web>
70
- <hibernate-configuration xmlns =" urn:nhibernate-configuration-2.2" >
71
- <bytecode-provider type =" null" /><!-- Important under Medium Trust -->
72
- <session-factory >
73
- <property name =" connection.provider" >NHibernate.Connection.DriverConnectionProvider, NHibernate</property >
74
- <property name =" connection.connection_string" >
75
- Server=(local);initial catalog=nhibernate;Integrated Security=true
76
- </property >
77
- <property name =" dialect" >NHibernate.Dialect.MsSql2008Dialect</property >
78
- <property name =" connection.driver_class" >NHibernate.Driver.SqlClientDriver</property >
79
- <property name =" current_session_context_class" >web</property >
80
- </session-factory >
81
- </hibernate-configuration >
82
- <log4net >
83
- <!-- Define some output appenders -->
84
- <appender name =" trace" type =" log4net.Appender.TraceAppender, log4net" >
85
- <layout type =" log4net.Layout.PatternLayout,log4net" >
86
- <param name =" ConversionPattern" value =" %d{ABSOLUTE} %-5p %c{1}:%L - %m%n" />
87
- </layout >
88
- </appender >
89
- <appender name =" console" type =" log4net.Appender.ConsoleAppender, log4net" >
90
- <layout type =" log4net.Layout.PatternLayout,log4net" >
91
- <param name =" ConversionPattern" value =" %d{ABSOLUTE} %-5p %c{1}:%L - %m%n" />
92
- </layout >
93
- </appender >
94
- <root >
95
- <priority value =" WARN" />
96
- <appender-ref ref =" trace" />
97
- </root >
98
- </log4net >
99
- <system .codedom>
100
- <compilers >
101
- <compiler language =" c#;cs;csharp" extension =" .cs" type =" Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel =" 4" >
102
- <providerOption name =" CompilerVersion" value =" v3.5" />
103
- <providerOption name =" WarnAsError" value =" false" /></compiler >
104
- <compiler language =" vb;vbs;visualbasic;vbscript" extension =" .vb" type =" Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel =" 4" >
105
- <providerOption name =" CompilerVersion" value =" v3.5" />
106
- <providerOption name =" OptionInfer" value =" true" />
107
- <providerOption name =" WarnAsError" value =" false" /></compiler ></compilers ></system .codedom>
108
- <system .webServer>
109
- <validation validateIntegratedModeConfiguration =" false" />
110
- <modules >
111
- <remove name =" ScriptModule" />
112
- <add name =" ScriptModule" preCondition =" managedHandler" type =" System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></modules >
113
- <handlers >
114
- <remove name =" WebServiceHandlerFactory-Integrated" />
115
- <remove name =" ScriptHandlerFactory" />
116
- <remove name =" ScriptHandlerFactoryAppServices" />
117
- <remove name =" ScriptResource" />
118
- <add name =" ScriptHandlerFactory" verb =" *" path =" *.asmx" preCondition =" integratedMode" type =" System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
119
- <add name =" ScriptHandlerFactoryAppServices" verb =" *" path =" *_AppService.axd" preCondition =" integratedMode" type =" System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
120
- <add name =" ScriptResource" verb =" GET,HEAD" path =" ScriptResource.axd" preCondition =" integratedMode" type =" System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></handlers ></system .webServer>
121
- <runtime >
122
- <assemblyBinding xmlns =" urn:schemas-microsoft-com:asm.v1" appliesTo =" v2.0.50727" ><dependentAssembly >
123
- <assemblyIdentity name =" System.Web.Extensions" publicKeyToken =" 31bf3856ad364e35" />
124
- <bindingRedirect oldVersion =" 1.0.0.0-1.1.0.0" newVersion =" 3.5.0.0" /></dependentAssembly >
125
- <dependentAssembly >
126
- <assemblyIdentity name =" System.Web.Extensions.Design" publicKeyToken =" 31bf3856ad364e35" />
127
- <bindingRedirect oldVersion =" 1.0.0.0-1.1.0.0" newVersion =" 3.5.0.0" /></dependentAssembly ></assemblyBinding ></runtime ></configuration >
45
+ <pages enableViewState =" false" enableViewStateMac =" false" controlRenderingCompatibilityVersion =" 3.5" clientIDMode =" AutoID" />
46
+ <!-- <trust level="Medium" /> -->
47
+ <httpModules >
48
+ <add name =" CurrentSessionModule" type =" NHibernate.Example.Web.CurrentSessionModule" />
49
+ </httpModules >
50
+ </system .web>
51
+ <hibernate-configuration xmlns =" urn:nhibernate-configuration-2.2" >
52
+ <bytecode-provider type =" null" /><!-- Important under Medium Trust -->
53
+ <session-factory >
54
+ <property name =" connection.provider" >NHibernate.Connection.DriverConnectionProvider, NHibernate</property >
55
+ <property name =" connection.connection_string" >
56
+ Server=(local);initial catalog=nhibernate;Integrated Security=true
57
+ </property >
58
+ <property name =" dialect" >NHibernate.Dialect.MsSql2008Dialect</property >
59
+ <property name =" connection.driver_class" >NHibernate.Driver.SqlClientDriver</property >
60
+ <property name =" current_session_context_class" >web</property >
61
+ </session-factory >
62
+ </hibernate-configuration >
63
+ <log4net >
64
+ <!-- Define some output appenders -->
65
+ <appender name =" trace" type =" log4net.Appender.TraceAppender, log4net" >
66
+ <layout type =" log4net.Layout.PatternLayout,log4net" >
67
+ <param name =" ConversionPattern" value =" %d{ABSOLUTE} %-5p %c{1}:%L - %m%n" />
68
+ </layout >
69
+ </appender >
70
+ <appender name =" console" type =" log4net.Appender.ConsoleAppender, log4net" >
71
+ <layout type =" log4net.Layout.PatternLayout,log4net" >
72
+ <param name =" ConversionPattern" value =" %d{ABSOLUTE} %-5p %c{1}:%L - %m%n" />
73
+ </layout >
74
+ </appender >
75
+ <root >
76
+ <priority value =" WARN" />
77
+ <appender-ref ref =" trace" />
78
+ </root >
79
+ </log4net >
80
+ </configuration >
0 commit comments