I have an area in my Mvc solution called /Admin
Within the /Admin/Views folder there is a standard web.config file.
I have included in this config file a customerErrors element under the system.web:
<customErrors mode="On" defaultRedirect="~/admin/oops" >
<error statusCode="404" redirect="~/admin/pagenotfound"/>
</customErrors>
Which differs from the one in my root web.config.
My expectation was that this would give me specific control of how errors are dealt with in the admin area.
This isn’t working.
Am I taking crazy pills or should I be able to override the default web.config settings with a more specific one in the area’s web.config?
Actually here is an article written about areas in mvc.
AREAS in ASP.NET MVC
According to this article, we cannot override the settings..