Hi All

I am extremely new to monorail and am having trouble setting up my
first project.

I am following the instructions to manually create a skeleton project
in visual studio (http://www.castleproject.org/MonoRail/gettingstarted/
creatingproject.html).

I have added the references to the assemblies and modified the
web.config to add the sections specified, but when I build it, it does
not appear to recognise the monorail config and I get a bunch of
warnings:
    Could not find schema information for the element 'monorail'.
    Could not find schema information for the element 'controllers'.
    Could not find schema information for the element 'assembly'.
    Could not find schema information for the element 'viewEngines'.
etc, etc


Then when I run it and try to go to my view I get:

Parser Error Message: Could not load type
'Castle.MonoRail.Framework.EngineContextModule' from assembly
'Castle.MonoRail.Framework'. (C:\Personal.Dev\Monorail\Test app
\WebApplication1\web.config line 47)


My web.config is as follows:

**************************************************************************************************************
<?xml version="1.0"?>
<configuration>
        <configSections>
                <section
                        name="monorail"
        
type="Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler,
Castle.MonoRail.Framework" />
        </configSections>

        <monorail>
                <controllers>
                        <assembly>WebApplication1</assembly>
                </controllers>

                <viewEngines viewPathRoot="Views">
                        <add
type="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine,
Castle.MonoRail.Framework.Views.NVelocity" />
                </viewEngines>
        </monorail>

        <system.web>
                <compilation debug="true">
                        <assemblies>
                                <add assembly="*"/>
                        </assemblies>
                </compilation>

                <authentication mode="Windows"/>

                <customErrors mode="RemoteOnly"/>

                <httpHandlers>

                        <add
                                verb="*"
                                path="*.castle"
                                
type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
Castle.MonoRail.Framework" />

                        <add
                                verb="*"
                                path="*.vm"
                                type="System.Web.HttpForbiddenHandler"/>

                </httpHandlers>

                <httpModules>
                        <add
                                name="monorail"
                                
type="Castle.MonoRail.Framework.EngineContextModule,
Castle.MonoRail.Framework" />
                </httpModules>
        </system.web>

</configuration>
******************************************************************************************************

Can anyone please help a newbie?

Thanks
Tommy

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to