DXA can use a couple of views to render error messages: ServerError.cshtml
, SectionError.cshtml
and EntityError.cshtml
.
Out of the box, the EntityError.cshtml
comes from the Core area, the other modules are in the Views\Shared
of the web application. You can also put all those views in Views\Shared
.
However, when I moved those views in my custom module's area the webapp could not find the views. It would only search for views in the the Areas/Core/Views
and Views/Shared
. Can I tell DXA or .NET MVC to search in my area as well?