It seems you didn't use the Windsor container integration, right?

But, you still need to configure the default MR container:

http://www.castleproject.org/monorail/documentation/v20/manual/configurationref.html

    <controllers>
        <assembly>AssemblyName1</assembly>
        <assembly>AssemblyName2</assembly>
    </controllers>

    <viewcomponents>
        <assembly>AssemblyName1</assembly>
        <assembly>AssemblyName2</assembly>
    </viewcomponents>

[]'s,

Ricardo Borges

2011/11/10 Leonardo Lima <[email protected]>

> Hi all,
>
> After long time, I´m upgrading my App to the newest Monorail, but I´m
> facing a problem,
>
> After change all the DLL´s and fix the errors from upgrade I got the
> following message
>
> ViewComponent 'BarraFerramenta' could not be found. Was it registered?
> If you have enabled Windsor Integration, then it's likely that you
> have forgot to register the view component as a Windsor component. If
> you are sure you did it, then make sure the name used is the component
> id or the key passed to ViewComponentDetailsAttribute
>
> In my View file I´ve this (I´m using NVelocity)
>
> #component(BarraFerramenta with "itens=Meu Cadastro e
>
> Pedidos,$siteroot/$LinkHelper.MakeUrl($Loja.Id.toString(),'seguro/myinfo','null')")
>
> In my web.config I´ve this
>
>  <configSections>
>    <section name="monorail"
> type="Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler,
> Castle.MonoRail.Framework"/>
>    <section name="hibernate-configuration"
> type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
>  </configSections>
>  <monorail useWindsorIntegration="false">
>    <controllers>
>      <assembly>Expressa.B2C</assembly>
>    </controllers>
>    <viewEngine viewPathRoot="Views"
>
> customEngine="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine,
> Castle.MonoRail.Framework.Views.NVelocity"/>
> </monorail>
>
> I really don´t know  how to solve this, so anyone can give me a clue ?
>
>
> My best regards,
> Leonardo Lima
>
> --
> 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.
>
>


-- 
Ricardo

-- 
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