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.

2
  • 1
    In MVC4 it's in App_Start/RouteConfig.cs as stated here Commented Feb 18, 2014 at 13:21
  • Worked for me . You could put this in answer as answer. I will mark it. Commented Feb 18, 2014 at 13:27

1 Answer 1

1

In MVC4 the default routes where moved from:

Global.asax

To:

App_Start/RouteConfig.cs

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.