I'm trying to setup a custom error section in my web.config file. I've been researching how to do this and have tried several examples but can't seem to make this work. I'm trying to get rid of the yellow application error screens that could show.
This is my latest web.config entry.
<system.web>
<customErrors mode="On" defaultRedirect="~/ErrorPages/Error.aspx">
<error statusCode="401" redirect="~/ErrorPages/401.aspx" />
<error statusCode="404" redirect="~/ErrorPages/404.aspx" />
</customErrors>
any help would be appreciated.
Thanks
This is my latest web.config entry.
<system.web>
<customErrors mode="On" defaultRedirect="~/ErrorPages/Error.aspx">
<error statusCode="401" redirect="~/ErrorPages/401.aspx" />
<error statusCode="404" redirect="~/ErrorPages/404.aspx" />
</customErrors>
any help would be appreciated.
Thanks