ok, a little explanation here. a. what you write in the url, is url. it's case insensitive. the url is invoking a monorail action, probably List() on PageController.
b. Monorail is trying to load a view template (a .vm file) from the file system. it's looking for /Views/page/list.vm note that page/list is lowercase, while Views is uppercase. so, if on your filesystem the is no file at Views/page/list.vm, then MonoRail would not be able to load and parse that template. so, rename the Page directory to page and it should make this work. On Wed, Oct 8, 2008 at 6:24 PM, <[EMAIL PROTECTED]> wrote: > > (accidentally replied to author) > > Thanks for the quick response. I'm using NVelocity and the file does > exist as Views/Page/list.vm. > > As far as I can tell, the configuration is correct: > > <monorail> > <controllers> > <assembly>Stayhealthy</assembly> > </controllers> > <viewEngines viewPathRoot="Views"> > <add > type="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, > Castle.MonoRail.Framework.Views.NVelocity"/> > </viewEngines> > </monorail> > > The system is Linux and accessing Page/list.sh and page/list.sh yields > the same error (with the obvious difference being "for the template > 'page/list'"). > > On Oct 8, 10:53 am, "Ken Egozi" <[EMAIL PROTECTED]> wrote: > > MonoRail could not resolve a view engine instance for the template > > 'page/list' There are two possible reasons: either the template does not > > exist, or the view engine that handles an specific file extension has not > > been configured correctly web.config (section monorail, node > viewEngines). > > > > question a: which view engine are you using? aspview, brail or nvelocity? > > now check the two options: > > 1. does the view template exists (i.e. a file named list.WHATEVER > > views/pages folder)? - WHATEVER is according to the view-engine you use > > 2. if so, is the view-engines nodes in monorail section in web.config > setup > > alright? > > > > > > > > On Wed, Oct 8, 2008 at 5:46 PM, <[EMAIL PROTECTED]> wrote: > > > > > I replied to a thread on the Castle Project forums, but hopefully I > > > can get some additional help here. > > > > > I'm new to .NET so I don't fully understand everything that I'm doing > > > or how to properly debug this problem. I have a view called Page and > > > am trying to access page/list.sh. This is working locally, however, it > > > is not on my Linux server running mono. This is the error I receive: > > > > > Server Error in '/test' Application > > > MonoRail could not resolve a view engine instance for the template > > > 'page/list' > > > There are two possible reasons: either the template does not exist, or > > > the view engine that handles an specific file extension has not been > > > configured correctly web.config (section monorail, node viewEngines). > > > > > Description: HTTP 500. Error processing request. > > > > > Stack Trace: > > > > > Castle.MonoRail.Framework.MonoRailException: MonoRail could not > > > resolve a view engine instance for the template 'page/list' > > > There are two possible reasons: either the template does not exist, or > > > the view engine that handles an specific file extension has not been > > > configured correctly web.config (section monorail, node viewEngines). > > > at > > > > Castle.MonoRail.Framework.Services.DefaultViewEngineManager.ResolveEngine > > > (System.String templateName, Boolean throwIfNotFound) [0x00000] > > > at > > > > Castle.MonoRail.Framework.Services.DefaultViewEngineManager.ResolveEngine > > > (System.String templateName) [0x00000] > > > at > > > Castle.MonoRail.Framework.Services.DefaultViewEngineManager.Process > > > (System.String templateName, System.IO.TextWriter output, > > > IEngineContext context, IController controller, IControllerContext > > > controllerContext) [0x00000] > > > at Castle.MonoRail.Framework.Controller.ProcessView () [0x00000] > > > at Castle.MonoRail.Framework.Controller.RunActionAndRenderView () > > > [0x00000] > > > > > Version information: Mono Version: 2.0.50727.42; ASP.NET Version: > > > 2.0.50727.42 > > > > > Any guidance or suggestions would be greatly appreciated. As stated, > > > this is working locally. > > > > -- > > Ken Egozi. > http://www.kenegozi.com/bloghttp://www.musicglue.comhttp://www.castleproject.orghttp://www.gotfriends.co.il > > > -- Ken Egozi. http://www.kenegozi.com/blog http://www.musicglue.com http://www.castleproject.org http://www.gotfriends.co.il --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to castle-project-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~---