InvalidOperationException:未找到分部视图。 MVC3.1

InvalidOperationException: The partial view was not found. MVC3.1

Admin/Dashboard.cshtml:

<partial name="Partials/_Dash.cshtml" />

我正在尝试为仪表板面板创建局部视图 _Dash.cshtml 菜单。但是,我收到以下错误:

错误:

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)

我已经有在 _Layout 中调用的 Partial View _Menu:

<partial name="Partials/_Menu.cshtml" />

并且工作正常。

可能是什么问题?

我总是为不在默认文件夹中的视图使用完整路径

<partial name="~/Views/..... /Partials/_Dash.cshtml" />

或者您可以移动共享文件夹中的部分视图,在本例中

<partial name="_Dash" />