未找到视图“错误”或其主控,或者没有视图引擎支持搜索的位置。搜索了以下位置

时间:2016-02-18 03:36:30

标签: asp.net asp.net-mvc asp.net-mvc-4

我已经设置了

<customErrors mode="Off"></customErrors>

我不想使用任何customeErrors,但为什么它仍然会找到错误视图?

    System.InvalidOperationException: The view 'Error' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Areas/OrderList/Views/OrderDetail/Error.aspx
~/Areas/OrderList/Views/OrderDetail/Error.ascx
~/Areas/OrderList/Views/Shared/Error.aspx
~/Areas/OrderList/Views/Shared/Error.ascx
~/Views/OrderDetail/Error.aspx
~/Views/OrderDetail/Error.ascx
~/Views/Shared/Error.aspx
~/Views/Shared/Error.ascx
~/Areas/OrderList/Views/OrderDetail/Error.cshtml
~/Areas/OrderList/Views/OrderDetail/Error.vbhtml
~/Areas/OrderList/Views/Shared/Error.cshtml
~/Areas/OrderList/Views/Shared/Error.vbhtml
~/Views/OrderDetail/Error.cshtml
~/Views/OrderDetail/Error.vbhtml
~/Views/Shared/Error.cshtml
~/Views/Shared/Error.vbhtml

0 个答案:

没有答案