in asp.net webform when I want to customize the error page I use the following comment :
<customErrors mode="on" defaultRedirect="defaultError.aspx">
<error statusCode="404" redirect="pageNotFound.aspx" />
<error statusCode="500" redirect="~/Error/Error.aspx" />
</customErrors>
Although there are error pages, unfortunately it does not work and still displays the error text.
I want to customize the error page but command not working...