How to fix "The file XXX is in the special directory App_Themes, which is not allowed“ error message

Kentico Support asked on May 31, 2013 18:48

How to fix "The file XXX is in the special directory App_Themes, which is not allowed“ error message?

Correct Answer

Kentico Support answered on May 31, 2013 18:48

This problem may occur if your IIS or application is not configured to handle certain extension. Typically, it’s woff, eot and some others. It can be fixed by adding the lines below into your web.config file:

<staticContent>
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<mimeMap fileExtension=".m4v" mimeType="video/m4v" />
<mimeMap fileExtension=".ogg" mimeType="video/ogg" />
<mimeMap fileExtension=".ogv" mimeType="video/ogg" />
<mimeMap fileExtension=".webm" mimeType="video/webm" />
<mimeMap fileExtension=".oga" mimeType="audio/ogg" />
<mimeMap fileExtension=".spx" mimeType="audio/ogg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".svgz" mimeType="image/svg+xml" />
<remove fileExtension=".eot" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".otf" mimeType="font/otf" />
<mimeMap fileExtension=".woff" mimeType="font/x-woff" />
</staticContent>


Note that some of these extensions may already be handled in IIS. You either need to remove those maps from this section, or include additional <remove> lines like the one for .eot.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.