In my Web.config I have.
<customErrors mode="On" defaultRedirect="~/Errors/Unknown">
<error statusCode="403" redirect="~/Errors/Forbidden"></error>
<error statusCode="404" redirect="~/Errors/NotFound"></error>
</customErrors>
It works fine if I try to open a page that doesn't exist. (It redirects to my custom error page: ErrorsController.NotFound). When an unhandled exception occurs (in this case in LINQ Signle(...)). It doesn't go to ~/Errors/Unknown, but displays default message:
Error. An error occurred while processing your request.
How replace it with my ErrorsController.Unknown ?