castle-monorail

How to find cpu hogs in a (monorails) web application

My web application is pretty ok in terms of speed, when I develop it, but as soon as I have higher load, cpu usage goes up to 100%, the ventilators spin up considerably and it is impossible to deploy. It seems anything more than 30 or so concurrent requests will kill the server. Of course I could add caching and some problems would go a...

Cancel controller action from Initialize()

I have come across a scenario where I have some initialization code on my conrtoller, which might identify an invalid state which will demand some user interaction. There for, I want to redirect the customer to another page/action if that occurs. Since I don't want the initial action to run if I hit this invalid state, I want to cancel ...

Can I load controllers in Monorail using MEF?

I've used MEF for a few projects at work and I've just stared messing about with Monorail in my spare time. I was wondering if there was any way that I could use MEF to load the controllers that Monorail uses. Monorail appears to look for controllers in assemblies that you list in the Web.Config: <controllers> <assembly>my.assembly</a...

Castle Monorail error - MonoRail could not resolve a view engine instance for the template 'Articles\List'

Hi I am trying to implement my first web application using Castle Monorail. Nut I am getting the following error MonoRail could not resolve a view engine instance for the template 'Articles\List' this is my controller [Layout("Default"), Rescue("GeneralError")] public class ArticlesController : SmartDispatcherController { ...

Does NVelocity support foreach.count?

I'm using the NVelocity from the Castle project and according to the velocity specs I should be able to access the loop counter like this: $foreach.counter But I can't get it to work so I suspect that it has not been implemented in NVelocity. Can anyone confirm this? ...

How to set focus to a textbox that was just inserting it into my page?

I have a dynamic web page that after clicking a link, I insert a partial view into my page using brailjs action. My brailjs view looks like this page.inserthtml('bottom', 'items', { @partial: 'item/_fields_replacement_part' }) page.replacehtml('add_item_link', { @partial: 'item/_addlink_replacement_part' }) After I insert the html, I...

Jeditable Problem in castle monorail

Hi, I am trying to use Jeditables (http://www.appelsiini.net/projects/jeditable) in my first castle monorail mvc application I managed to have the textbox appearing and to the the ajax call, my problem is now that after the ajax call the edited text returs is not changes and i can t get the response after the call this is my page <he...

Attempted to read or write protected memory

Using monorail and nhibernate when saving a business object to the database I am now getting the error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Does anyone know what causes this error? I see people getting it when calling a different db driver like for oracle but I am using...