404 on static content (svg,woff,ttf) on Azure
I hit the same problem with .woff
file. Solution with adding that extension to web.config
works fine:
<configuration> <system.webServer> <staticContent> <mimeMap fileExtension="woff" mimeType="application/font-woff" /> </staticContent></system.webServer>
(see oryginal solution: http://www.codepal.co.uk/show/WOFF_files_return_404_in_Azure_Web_Sites)
When I put the suggested lines into web.config
it didn't work. Instead I put the following lines into Web.config
(note the capital letter)
<configuration> <system.webServer> <staticContent> <mimeMap fileExtension="woff" mimeType="application/font-woff" /> <mimeMap fileExtension="woff2" mimeType="application/font-woff" /> </staticContent> </system.webServer>
I did not include font files in solution. This caused that publishing website does not contains this files.