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);
      RegisterRoutes(RouteTable.Routes);
}
Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: