1 <?xml version=
"1.0" encoding=
"utf-8"?>
4 <section name=
"monorail" type=
"Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler, Castle.MonoRail.Framework" />
7 type=
"Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord" />
10 <activerecord isWeb=
"true">
14 key=
"hibernate.connection.driver_class"
15 value=
"NHibernate.Driver.SqlClientDriver" />
17 key=
"hibernate.dialect"
18 value=
"NHibernate.Dialect.MsSql2000Dialect" />
20 key=
"hibernate.connection.provider"
21 value=
"NHibernate.Connection.DriverConnectionProvider" />
23 key=
"hibernate.connection.connection_string"
24 value=
"Data Source=.;Initial Catalog=test;Integrated Security=SSPI" />
30 For more on monoRail configuration see
31 http://www.castleproject.org/monorail/documentation/v1rc3/index.html
33 <monorail smtpHost=
"yoursmtphost" useWindsorIntegration=
"false">
35 <assembly>GettingStartedSample
</assembly>
37 <viewEngines viewPathRoot=
"Views">
38 <add type=
"Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, Castle.MonoRail.Framework.Views.NVelocity" />
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" />
50 <add name=
"monorail" type=
"Castle.MonoRail.Framework.EngineContextModule, Castle.MonoRail.Framework" />