|
9 | 9 | -->
|
10 | 10 | <configuration>
|
11 | 11 | <configSections>
|
12 |
| - <section name="hibernate-configuration" |
13 |
| - type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" |
14 |
| - requirePermission="false" /> <!-- Important under Medium Trust --> |
15 |
| - |
16 |
| - <section name="log4net" |
17 |
| - type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" |
18 |
| - requirePermission="false" /> <!-- Important under Medium Trust --> |
19 |
| - </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> |
20 | 24 | <appSettings/>
|
21 | 25 | <connectionStrings/>
|
22 | 26 | <system.web>
|
|
26 | 30 | affects performance, set this value to true only
|
27 | 31 | during development.
|
28 | 32 | -->
|
29 |
| - <compilation debug="true"/> |
| 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> |
30 | 39 | <!--
|
31 | 40 | The <authentication> section enables configuration
|
32 | 41 | of the security authentication mode used by
|
|
45 | 54 | <error statusCode="404" redirect="FileNotFound.htm" />
|
46 | 55 | </customErrors>
|
47 | 56 | -->
|
48 |
| - <pages enableViewState="false" enableViewStateMac="false" /> |
| 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> |
49 | 61 | <!-- <trust level="Medium" /> -->
|
50 |
| - |
51 | 62 | <httpModules>
|
52 |
| - <add name="CurrentSessionModule" type="NHibernate.Example.Web.CurrentSessionModule" /> |
53 |
| - </httpModules> |
54 |
| - </system.web> |
55 |
| - |
| 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> |
56 | 70 | <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
|
57 | 71 | <bytecode-provider type="null"/><!-- Important under Medium Trust -->
|
58 | 72 | <session-factory>
|
|
66 | 80 | <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property>
|
67 | 81 | </session-factory>
|
68 | 82 | </hibernate-configuration>
|
69 |
| - |
70 | 83 | <log4net>
|
71 | 84 | <!-- Define some output appenders -->
|
72 |
| - <appender name="trace" |
73 |
| - type="log4net.Appender.TraceAppender, log4net"> |
| 85 | + <appender name="trace" type="log4net.Appender.TraceAppender, log4net"> |
74 | 86 | <layout type="log4net.Layout.PatternLayout,log4net">
|
75 |
| - <param name="ConversionPattern" |
76 |
| - value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n" /> |
| 87 | + <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/> |
77 | 88 | </layout>
|
78 | 89 | </appender>
|
79 |
| - |
80 |
| - <appender name="console" |
81 |
| - type="log4net.Appender.ConsoleAppender, log4net"> |
| 90 | + <appender name="console" type="log4net.Appender.ConsoleAppender, log4net"> |
82 | 91 | <layout type="log4net.Layout.PatternLayout,log4net">
|
83 |
| - <param name="ConversionPattern" |
84 |
| - value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n" /> |
| 92 | + <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/> |
85 | 93 | </layout>
|
86 | 94 | </appender>
|
87 |
| - |
88 | 95 | <root>
|
89 |
| - <priority value="WARN" /> |
90 |
| - <appender-ref ref="trace" /> |
| 96 | + <priority value="WARN"/> |
| 97 | + <appender-ref ref="trace"/> |
91 | 98 | </root>
|
92 | 99 | </log4net>
|
93 |
| -</configuration> |
| 100 | + <system.codedom> |
| 101 | + <compilers> |
| 102 | + <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"> |
| 103 | + <providerOption name="CompilerVersion" value="v3.5"/> |
| 104 | + <providerOption name="WarnAsError" value="false"/></compiler> |
| 105 | + <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"> |
| 106 | + <providerOption name="CompilerVersion" value="v3.5"/> |
| 107 | + <providerOption name="OptionInfer" value="true"/> |
| 108 | + <providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom> |
| 109 | + <system.webServer> |
| 110 | + <validation validateIntegratedModeConfiguration="false"/> |
| 111 | + <modules> |
| 112 | + <remove name="ScriptModule"/> |
| 113 | + <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules> |
| 114 | + <handlers> |
| 115 | + <remove name="WebServiceHandlerFactory-Integrated"/> |
| 116 | + <remove name="ScriptHandlerFactory"/> |
| 117 | + <remove name="ScriptHandlerFactoryAppServices"/> |
| 118 | + <remove name="ScriptResource"/> |
| 119 | + <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"/> |
| 120 | + <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"/> |
| 121 | + <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> |
| 122 | + <runtime> |
| 123 | + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
| 124 | + <dependentAssembly> |
| 125 | + <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> |
| 126 | + <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly> |
| 127 | + <dependentAssembly> |
| 128 | + <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> |
| 129 | + <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration> |
0 commit comments