Relaxed the need for Types that represent database boundaries to extend from ActiveRe...
[castle.git] / Samples / MonoRail / GettingStartedSampleVS2005 / GettingStartedSample / Web.config
blob4e450a4edd70b120e5410ecb84bc9888983d0411
1 <?xml version="1.0" encoding="utf-8"?>
2 <configuration>
3 <configSections>
4 <section name="monorail" type="Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler, Castle.MonoRail.Framework" />
5 <section
6 name="activerecord"
7 type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord" />
8 </configSections>
10 <activerecord isWeb="true">
12 <config>
13 <add
14 key="hibernate.connection.driver_class"
15 value="NHibernate.Driver.SqlClientDriver" />
16 <add
17 key="hibernate.dialect"
18 value="NHibernate.Dialect.MsSql2000Dialect" />
19 <add
20 key="hibernate.connection.provider"
21 value="NHibernate.Connection.DriverConnectionProvider" />
22 <add
23 key="hibernate.connection.connection_string"
24 value="Data Source=.;Initial Catalog=test;Integrated Security=SSPI" />
25 </config>
27 </activerecord>
29 <!--
30 For more on monoRail configuration see
31 http://www.castleproject.org/monorail/documentation/v1rc3/index.html
32 -->
33 <monorail smtpHost="yoursmtphost" useWindsorIntegration="false">
34 <controllers>
35 <assembly>GettingStartedSample</assembly>
36 </controllers>
37 <viewEngines viewPathRoot="Views">
38 <add type="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, Castle.MonoRail.Framework.Views.NVelocity" />
39 </viewEngines>
40 </monorail>
41 <system.web>
42 <httpHandlers>
43 <add verb="*" path="*.castle" type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory, Castle.MonoRail.Framework" />
44 <!-- block direct user access to template files -->
45 <add verb="*" path="*.vm" type="System.Web.HttpForbiddenHandler" />
46 <add verb="*" path="*.boo" type="System.Web.HttpForbiddenHandler" />
47 <add verb="*" path="*.st" type="System.Web.HttpForbiddenHandler" />
48 </httpHandlers>
49 <httpModules>
50 <add name="monorail" type="Castle.MonoRail.Framework.EngineContextModule, Castle.MonoRail.Framework" />
51 </httpModules>
52 </system.web>
53 </configuration>