I have a website that makes use of a web.config. I tried adding in the following code:
<customErrors mode="On" defaultRedirect="error.htm">
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
But it doesn't seem to work. Errors still show up. Could I be putting it in the wrong place?
Sample:
<authentication mode="Forms">
<!-- Assign login url to LOGINSTATUS control -->
<!-- log user out after 15 minutes of inactivity -->
<forms loginUrl="~/Tilton/Login/Login.aspx" timeout="15"/>
</authentication>
<customErrors mode="On" defaultRedirect="error.htm">
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>