خرید بک لینک

Vote count: 0

It has to be something simple that I'm missing, since this is my first try on MVC. Seems nothing works but the default route.

This were my steps:

  1. Create new solution from an MVC5 template (Which comes with a HomeController and a Controller/Action/Id by default on the RouterConfig.Configuration.
  2. Add --> Controller named Foo --> Create an ActionResult named Details
  3. Add a View named Details
  4. Run the MVC project
  5. Appears the home page, and I change the url from

localhost:50212

to

localhost:50212/Foo/Details

Result: I get a 404

Is it that the MVC AreaRegistration does not happen automatically on compile time?

I went to the Global.asax and tried placing on Application_Start

AreaRegistration.RegisterAllAreas();

But that seemed useless. Any Ideas? Is it that VS community 2015 is missing something? Regards

asked 34 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 17 مرداد 1395 ساعت: 1:10

صفحه بندی