In ASP.NET MVC 3, your routes are defined in global.asax
You can find it at the root of the site.
By default, it looks like this:
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default",
This means that when you invoke the root of the site without parameters, it uses the default values ββ- in this case home/index .
So you need to make sure that you:
- there is a controller called
home - a
Action is called index , which returns an ActionResult
Alternatively, you can update the default values ββin routes, although if you are just starting out, I would not recommend this.
source share