After setting the custom 404 error page in the IIS site properties to a file, sometimes it does not take effect, always prompting the phrase: "The system cannot find the file specified."
In fact, this kind of error is only in some website programs appear, in fact, the solution is very simple. This is because the normal user of IIS does not have access to the specified 404.html page, resulting in a custom 404 error page that cannot be displayed before the " system cannot find the file specified " is displayed. We can resolve this issue by giving the specified 404.html page the permissions that the user group has read.
It's so simple that things can be done easily.
Here to remind, some people see the message type is "file" setting is not, just want to adjust to the format of the URL, although it will succeed, but actually return is 200 states, remember!!
IIS custom 404 Error page displays "System cannot find the file specified" workaround