When I use this URL:
http://www.domain.com/Dashboard/Admin/Index
My page works as expected. Dashboard
is an MVC Area, Admin
is the controller and Index
is the view.
If I remove the area name, like this:
http://www.domain.com/Admin/Index
Then I get the following error:
That's only kind-of expected; shouldn't it be a 404?
Why does MVC still successfully locate the controller and attempt to find the view when I don't specify the area?
How do I force it to return 404 when area is not included?
I've tried changing namespaces but it doesn't make a difference.