Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

woff font MIME type on live server error

I have an asp.net MVC 4 website where I'm using woff font. Everything works fine when running on VS IIS. However when I uploaded the pate to 1and1 hosting (live server) I get the following:

NetworkError: 404 Not Found - http://www.com/Content/font/fontawesome-webfont.woff?v=3.2.1

When I include this in my web.config (as some suggest) my web application stops working completely and load indefinitely.

    <staticContent>
        <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
    </staticContent>

what am I doing wrong?

like image 910
ShaneKm Avatar asked Sep 06 '13 05:09

ShaneKm


1 Answers

Have you tried removing the mapping before adding a new one in your web.config?

For Example:

<configuration>
   <system.webServer>
        ...
        <staticContent>
           <remove fileExtension=".woff" />
           <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
        </staticContent>
like image 107
Guy Avatar answered Sep 23 '22 20:09

Guy