Bootstrap: error retrieving glyphicons-halflings-regular.woff2

Standard

One of the most reoccurring issue for the websites using bootstrap theme is “error retrieving glyphicons-halflings-regular.woff2”, Usually it has two occurrence scenarios

  1. We encounter this error from successful AJAX call

Hk5i5

2. Some times it is reported as glyphicons-halflings-regular.woff2 not found although it is included in project at exact location

 

Solution:

Add below code in your web project web.config file (system.webServer > staticContent >)

    <staticContent>
      <remove fileExtension=".woff" />
      <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
      <remove fileExtension=".woff2" />
      <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
    </staticContent>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s