Tim Scott's Blog

July 13, 2008

RhinoCommons With MS MVC

Filed under: MS MVC, NHibernate — Tim Scott @ 10:34 pm

If you are building an MS MVC web app using Rhino Commons you will probably want to run it as a UnitOfWorkApplication, like so:

public class GlobalApplication : UnitOfWorkApplication

If you stop there it will not work. You will get “The resource cannot be found” error when you run it. Michael Hanney has found a workaround that solves this issue. Change your Application_Start method as follows:

public override void Application_Start(object sender, EventArgs e)
      base.Application_Start(sender, e);

Create a free website or blog at WordPress.com.