404 error page redirect showing error
<customErrors mode="RemoteOnly" defaultRedirect="~/ErrorPages/404.aspx">
<error statusCode="404" redirect="~/ErrorPages/404.aspx" />
</customErrors>
Server Error in '/' Application.
Runtime Error
Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated.