I met this first time in MVC. I have area "Administation" and controller in there "News" with action "List".
In debug i got breakpoint at
public ActionResult List()
{
return View(); // Breakpoint
}
and i get there
but engine cannot find View "List"
I got error:
The view 'List' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/News/List.cshtml
~/Views/News/List.vbhtml
~/Views/Shared/List.cshtml
~/Views/Shared/List.vbhtml
View exits in location Areas/Administation/News/List.cshtml
Why Razor don't paste Area name into view view location ?
UPDATE:
I found solution: ASP.NET MVC Default routes accessible via area routes
Route route = Routes.MapRoute(name, url, defaults, constraints, namespaces);
route.DataTokens["area"] = AreaName;