Fix the build.
[castle.git] / Samples / MonoRail / MoviesDemo / Web.config
blob47daea89b73f59b783ec46b6eea7054f6c0fab50
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 name="activerecord" type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord" />
6 </configSections>
8 <activerecord>
9 <config>
10 <add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
11 <add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" />
12 <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
13 <add key="hibernate.connection.connection_string" value="Data Source=.;Initial Catalog=test;Integrated Security=SSPI;" />
14 </config>
15 </activerecord>
17 <monorail>
18 <controllers>
19 <assembly>MoviesDemo</assembly>
20 </controllers>
21 <viewEngine viewPathRoot="views" customEngine="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, Castle.MonoRail.Framework.Views.NVelocity" />
22 </monorail>
24 <system.web>
25 <httpHandlers>
26 <add verb="*" path="*.castle" type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory, Castle.MonoRail.Framework" />
28 <!-- block direct user access to template files -->
29 <add verb="*" path="*.vm" type="System.Web.HttpForbiddenHandler"/>
30 </httpHandlers>
31 <httpModules>
32 <add name="monorail" type="Castle.MonoRail.Framework.EngineContextModule, Castle.MonoRail.Framework" />
33 </httpModules>
34 </system.web>
35 </configuration>