MVC 3 - New Area - 404 error - Resource not found - have tried route debugger

后端 未结 3 1847
旧巷少年郎
旧巷少年郎 2021-02-20 10:09

I have a small MVC 3 app - bit of a demo ground. I have one area and thats been working fine.

I have just added another area expecting to just spin up the app and it wor

3条回答
  •  野性不改
    2021-02-20 10:57

    I ran into this when I moved a controller into an Area but forgot to update the namespace. The controller name is scoped to the Area's namespace. So "Some" in "Area" will map to App.Areas.Area.Controllers.SomeController, which didn't exist.

提交回复
热议问题