I am using Monorail in my C # web application. Since I updated it (.NET Framework 2-4 and Monorail 1.0.3 to 2.1RC), my ViewComponent class was not found. All of my controllers seem to be working fine. I am using the nVelocity View Engine. I do not use Windsor, but maybe now I have to register it in a certain way?
In the .vm file, I experimented in the following lines (without success, the first worked before I updated the project):
#component(MenuComponent)
#component(MenuComponent with "role=admins")
#blockcomponent(MenuComponent with "role=admins")
Has anyone experimented?
Full error message:
ViewComponent 'MenuComponent' may not be found. Was it registered? If you enabled Windsor integration, then you probably forgot to register the view component as the Windsor component. If you are sure that you did this, then make sure that the name used is the identifier of the component or the key passed to ViewComponentDetailsAttribute
Many thanks!
source
share