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?

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
ShaneKm
  • 20,823
  • 43
  • 167
  • 296

1 Answers1

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>
viggity
  • 15,039
  • 7
  • 88
  • 96
Guy
  • 2,883
  • 1
  • 32
  • 39