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
Post a Comment