:::: MENU ::::

.woff not found (404) mvc4

last day it was hard enough to figure out how can enable .woff fonts to be loaded for MVC4 website even though the file definitely exists and the URL is correct , every single effort was turns out non working , it was lighting click to use staticContent tag in web.config and there you go ! , it ends up quick fix for me !

Here is piece of code need to be added in to web.config and all set !

<system.webServer>
<staticContent>
<remove fileExtension=”.woff” />
<mimeMap fileExtension=”.woff” mimeType=”application/x-font-woff” />
</staticContent>
</system.webServer>

Let me know in comment if doesn’t work for you.

Happy Coding !


So, what do you think ?