I think some version of monorail contains bug that ignore viewcomponents
configuration.
Try to build from source https://github.com/castleproject/MonoRail. I
think it was fixed but not released.


2014/1/14 bdaniel7 <[email protected]>

> Hi,
>
> I'm trying to set up a Monorail project for demonstration purposes and I
> had to upgrade to 2.1 RC because the Url/Html helpers weren't rendered
> anymore.
>
> I have registered the viewcomponents in web.config like this:
> <viewcomponents>
> <assembly>VolOnline.Web</assembly>
> </viewcomponents>
>
> And use it like this:
>
> #component(MainMenuComponent)
>
> Now I'm getting the "ViewComponent 'MainMenuComponent' could not be found.
> Was it registered?..." error.
>
> After reading this thread, I tried to rename the MainMenuComponent to
> MainMenu everywhere in the code and in the layout but I'm getting the same
> error:
>
> "ViewComponent 'MainMenu' could not be found. Was it registered?..."
>
> Am I doing something wrong?
> How can I fix this?
>
> Thanks,
> Daniel
>
> On Monday, January 31, 2011 5:29:46 PM UTC+2, James Curran wrote:
>>
>> Try it like this (with the "Component"):
>>
>> #blockcomponent(Security with "role=admins")
>>
>> Truth,
>>     James
>>
>>
>>
>>>  --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected]
> .
> Visit this group at http://groups.google.com/group/castle-project-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to