markknowsley
Programmer
I'm trying to get the customErrors tag in my web.config file to run a custom error page rather than the generic
Runtime Error
Description: An application error occurred on the server...
that users see when something goes wrong.
So I've followed the advice printed on about 100 different websites - set the tag as follows:
<customErrors mode="RemoteOnly" defaultRedirect="Error.htm" >
<error statusCode="403" redirect="Error.htm" />
<error statusCode="404" redirect="Error.htm" />
</customErrors>
But when I copy the app across to the web server and run it, it still shows the generic error screen rather than Error.htm.
Has anyone experience this before and does anyone know what is going on?
Runtime Error
Description: An application error occurred on the server...
that users see when something goes wrong.
So I've followed the advice printed on about 100 different websites - set the tag as follows:
<customErrors mode="RemoteOnly" defaultRedirect="Error.htm" >
<error statusCode="403" redirect="Error.htm" />
<error statusCode="404" redirect="Error.htm" />
</customErrors>
But when I copy the app across to the web server and run it, it still shows the generic error screen rather than Error.htm.
Has anyone experience this before and does anyone know what is going on?