If you upgrade from MVC 1 to 2 or higher and your controller factory (such as StructureMapControllerFactory) throws a “no suitable method found to override” error for your GetControllerInstance method, be sure you have a reference to System.Web.Routing:

using System.Web.Routing;

And be sure you add the RequestContext parameter to the GetControllerInstance method call like this:

protected override IController GetControllerInstance(RequestContext requestContext, Type controllerType)

« »