I've configured structuremap successfully but every page search for a controller with name "scripts"
public class StructureMapControllerFactory : DefaultControllerFactory
{
public override IController CreateController(RequestContext context, string controllerName)
{
Type controllerType = base.GetControllerType(context, controllerName);
return ObjectFactory.GetInstance(controllerType) as IController;
}
}
It happens because the parameter string ControllerName comes everytime with the string "scripts"