MVC2 Areas and Controller 404
Posted
by CodeGrue
on Stack Overflow
See other posts from Stack Overflow
or by CodeGrue
Published on 2010-06-07T13:31:35Z
Indexed on
2010/06/07
13:42 UTC
Read the original article
Hit count: 607
asp.net-mvc-2
|asp.net-mvc-areas
My project namespace is
MyProject.MVC
So my controllers, which are segregated into Areas, are in this namespace:
MyProject.MVC.Areas.AreaName
But when I try to access a controller action in this namespace, I get a 404 error:
http://MySite/AreaName/Action/View
If I "remove" the MVC portion from the namespace on my controllers, everything works correctly.
MyProject.Areas.AreaName
Could I have things wired incorrectly or is this an issues with MVC2 Areas?
© Stack Overflow or respective owner