Introducing Bootstrap always complains: The server responded with a status of 404 (Not Found)

Source: Internet
Author: User

Failed to load resource:the Server responded and a status of 404 (not Found) error point.. /FONTS/GLYPHICONS-HALFLINGS-REGULAR.WOFF2

VS2013 use bootstrap, the introduction of local bootstrap files always error.

There are two possible reasons:

1.

See is the reference <link href= "~/scripts/bootstrap/css/bootstrap.css" rel= "stylesheet"/> or <link href= "~/scripts/" Bootstrap/css/bootstrap.min.css "rel=" stylesheet "/>.

There is a problem with the path, specifically in the introduction of the font file, the file is missing, the corresponding path can be copied.

@font-face {
    font-family: ' glyphicons halflings ';
    src: url ('.. /fonts/glyphicons-halflings-regular.eot ');
    url ('.. /fonts/glyphicons-halflings-regular.eot #iefix ') format (' Embedded-opentype '),
url ('.. /FONTS/GLYPHICONS-HALFLINGS-REGULAR.WOFF2 ') format (' woff2 '),
URL ('.. /fonts/glyphicons-halflings-regular.woff ')
url ('.. /fonts/glyphicons-halflings-regular.ttf ') format (' TrueType '),
url ('.. /fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular ') format (' svg ');
}

2. Please refer to: Https://stackoverflow.com/questions/32300578/how-to-remove-error-about-glyphicons-halflings-regular-woff2-not-found

Workaround one: In the Web.config file, configure the file to join

<system.webServer> ... 
    <staticContent>
      <remove fileextension= ". Woff"/> <mimemap fileextension= "Woff" mimetype= "
      Application/x-font-woff "/> <remove fileextension=" woff2 "/> <mimemap". fileextension= "
      Mimetype= "Application/font-woff2"/>
    </staticContent>
  </system.webServer>

The test can be.

Workaround Two: Modify the IIS Mappings

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.