SyntaxFix
Write A Post
Hire A Developer
Questions
In my case I had @{ Html.RenderAction("HeaderMenu", "Layout", new { Area = string.Empty }); } in _Layout.cshtml but the LayoutController did not exist! (I had copied _Layout.cshtml from another solution but forgot to copy the controller)
@{ Html.RenderAction("HeaderMenu", "Layout", new { Area = string.Empty }); }