I want to show the Custom Errors in error.aspx page when any error occur. Its redirecting to error.aspx when error happens. But not showing the message.
I set web.config like
<customErrors mode="On" defaultRedirect="/error.aspx" redirectMode="ResponseRewrite">
<error statusCode="404" redirect="/notfound.aspx" /></customErrors>
Is there any way to show the error message in error.aspx page.