2
Vote

MVC v2 - not supported

description

Hello
Will there be any update to run this app on mvc v2 ??

comments

maartenba wrote Apr 16, 2010 at 10:43 AM

This is not planned currently.

wrote May 14, 2010 at 9:57 PM

ShivaS wrote Jan 11, 2012 at 2:39 PM

It's easy to switch to MVC 2, based on the following steps:
  1. Migrate solution to MVC2 using the tool from http://weblogs.asp.net/leftslipper/archive/2010/03/10/migrating-asp-net-mvc-1-0-applications-to-asp-net-mvc-2-rtm.aspx
  2. edit CarTrackr/Core/UnityControllerFactory and replace
    protected override IController GetControllerInstance(Type controllerType)
    with
    protected override IController GetControllerInstance(RequestContext requestContext, Type controllerType)
  3. also add as reference System.Web.Routing
  4. edit CarTrackr.Tests/Controllers/RefuellingControllerTest by adding the following lines to the NewTest2 method, after the falues in the formCollection are set:
    List<IValueProvider> valueProviders = new List<IValueProvider>();
    valueProviders.Add(formCollection);
    target.ValueProvider = new ValueProviderCollection(valueProviders);

wrote Feb 14, 2013 at 1:44 AM