IIS custom 404 Error page displays "System cannot find the file specified" workaround

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.