c# - Adding filetype to IIS7 with web.config -


i want allow website serve .woff files. tried command line prompt in installer didnt seem work found out add in web.config. unfortunately when server stops serving other file types (css / js etc)

what happening?

<system.webserver>   <staticcontent>     <mimemap fileextension=".woff" mimetype="application/octet-stream" />   </staticcontent> </system.webserver> 

i had exact same problem in past , due fact ".woff" extension mapped in machine.config, causing silent conflict.

try using "remove" tag before "mimemap" tag, this:

<remove fileextension=".woff"/> <mimemap fileextension=".woff" mimetype="application/octet-stream" /> 

that should fix problem, @ least did me.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -