After adding this in my web.config (Azure Project)…
<staticContent> <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> </staticContent>
…IIS refused to serve any static content – such as js and png files. Log entries in Event Viewer said:
The directory specified for caching compressed content
The problem was that .svg files were already added to the staticContent list in my applicationHost.config – but still – the error message shown in the Event Viewer is pretty useless. There is nothing wrong with the directory specified to store compressed content.
So if you suddenly get this error – undo any changes in Web.config (remove all config under staticContent) and restart IIS (Express).