Admin/Dashboard.cshtml:
<partial name="Partials/_Dash.cshtml" />
I'm trying to create a partial view _Dash.cshtml menu for the dashboard panel. However, I'm getting the following error:
Error:
An unhandled exception occurred while processing the request.
InvalidOperationException: The partial view 'Partials/_Dash.cshtml' was not found. The following locations were searched:
/Views/Admin/Partials/_Dash.cshtml
Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)
I already have Partial View _Menu which is called in _Layout:
<partial name="Partials/_Menu.cshtml" />
and it's working fine.
What could be the problem?