More working tests.
[castle.git] / Samples / MonoRail / BinderSample / BinderSample.Web / web.config
blobd2bb4315b0913ebb919a21d0e83d2a2d9b14d4d3
1 <?xml version="1.0" encoding="utf-8" ?>
3 <configuration>
5 <configSections>
6 <section name="activerecord"
7 type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord" />
8 <section name="monorail"
9 type="Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler, Castle.MonoRail.Framework" />
10 <section name="log4net"
11 type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
12 </configSections>
14 <activerecord isWeb="true">
16 <config>
17 <add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
18 <add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" />
19 <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
20 <add key="hibernate.connection.connection_string" value="Data Source=.;Initial Catalog=test;Integrated Security=SSPI" />
21 </config>
23 </activerecord>
25 <monorail>
26 <controllers>
27 <assembly>BinderSample.Web</assembly>
28 </controllers>
29 <viewEngine
30 viewPathRoot="views"
31 customEngine="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, Castle.MonoRail.Framework.Views.NVelocity" />
32 </monorail>
34 <system.web>
35 <compilation defaultLanguage="C#" />
37 <httpHandlers>
38 <add verb="*" path="*.castle"
39 type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory, Castle.MonoRail.Framework" />
41 <!-- block direct user access to template files -->
42 <add verb="*" path="*.vm" type="System.Web.HttpForbiddenHandler"/>
43 </httpHandlers>
45 <httpModules>
46 <add name="monorail" type="Castle.MonoRail.Framework.EngineContextModule, Castle.MonoRail.Framework" />
47 </httpModules>
48 </system.web>
50 <log4net threshold="OFF" />
52 </configuration>