I have a main mvc project and an area
The Area uses the shared _Layout.cshtml from the main project. In the shared _Layout.cshtml, there is a RenderPartial("GlobalNavigation","Navigation") that call the controller "Navigation" in the main project. So I got this error
The IControllerFactory 'abc.NinjectControllerFactory' did not return a controller for the name 'Navigation'.
I guess its because the view is calling the Controller "Navigation" in the Area, but the controller "Navigation" is in the main project. How can I fix this?
_Layout.cshtml
<div id="global-nav">
@{ Html.RenderAction("GlobalNavigation", "Navigation"); }
</div>