I have an MVC 4 view where I render the following actions
@{
Html.RenderAction(\"Index\", \"Logo\");
Html.RenderAction(\"Index\", \"MainMenu\");
}
>
This happened to me, because I was calling the view from different areas.
The view I wanted to call was not within an area, so when calling it from outside of all areas a call like
@Html.RenderAction("Index", "Logo");
would work without problems.
But when I wanted that same view called from another view that was inside an area, I would have to add some additional information to the call to make it explicit:
@Html.RenderAction("Index", "Logo", new { area = "" });