In Global.asax.cs RegisterRoutes change to:
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Default1", action = "Index", id = UrlParameter.Optional } // Parameter defaults ); }
This mean that Default1 controller will be called, action Index (also view)... It is called from:
protected void Application_Start()
and Application_Start() is place where application begans