Font Awesome and IIS

If you are using Font Awesome in your ASP.Net web app which is hosted on IIS, you need to set appropriate mime type for Font Awesome files, otherwise IIS won’t know how to serve them.

To do this, you’ll need to add mime type mapping to <system.webServer> section in your application’s Web.config file.

Before registering each file extension (woff and woff2), we’ll want to remove them first, just in case that mime types for those are already registered on IIS host.

<remove fileExtension=”.woff” />
<mimeMap fileExtension=”.woff” mimeType=”application/x-font-woff” />
<remove fileExtension=”.woff2″ />
<mimeMap fileExtension=”.woff2″ mimeType=”application/x-font-woff2″ />


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s