woff font MIME type on live server error
Asked Answered
M

1

11

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?

Madelenemadelin answered 6/9, 2013 at 5:58 Comment(0)
C
20

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>
Camilacamile answered 27/9, 2013 at 4:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.