0

Able to create Controller and Views on my ASP.NET MVC app.

When I start the application each time I have to type /index.

I read through posts which suggests to use routes.MapRoute(..

But my Global.asax file does not contain route directly.

Do I need to use RouteTable.Routes.MapRoute(.. instead.

Simsons
  • 12,295
  • 42
  • 153
  • 269
  • 1
    In `MVC4` it's in `App_Start/RouteConfig.cs` as stated [here](http://stackoverflow.com/questions/1142003/set-homepage-in-asp-net-mvc) – Wahtever Feb 18 '14 at 13:21
  • Worked for me . You could put this in answer as answer. I will mark it. – Simsons Feb 18 '14 at 13:27

1 Answers1

1

In MVC4 the default routes where moved from:

Global.asax

To:

App_Start/RouteConfig.cs

Wahtever
  • 3,597
  • 10
  • 44
  • 79