This project is read-only.

Error while setting up MT with MVC4

Jan 7, 2013 at 1:06 PM

Hi,

I have been able to get MT working with MVC 4 before but I am getting a strange error that is making my pulling my hair. I have just installed the MVC Turbine StructureMap package. 

Here is my Application setting

 public class MvcApplication : TurbineApplication
    {
        static MvcApplication()
        {
            ServiceLocatorManager.SetLocatorProvider(() => new StructureMapServiceLocator());
        }

        public override void Startup()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();
        }
    }
and here is my route config
public class RouteConfig : IRouteRegistrator
    {
        public void Register(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
    }

I simple launch my app and I get error

StructureMap error 202, no Default Instance defined for PluginFamily System.Web.Mvc.ITempDataProvider

I have no idea what is wrong? any help would be extremely helpful.
Thanks.