Adding <mimeMap> entry Causes 500 for Other Static Content on IIS Express

Aaron Drenberg picture Aaron Drenberg · Apr 24, 2013 · Viewed 10.2k times · Source

I'm using Visual Studio 2012 with Update 2 and IIS Express.

When I add a record to the staticContent section, all other static content (.js, .css, .jpg, etc) returns a 500 error.

Any advice would be greatly appreciated. Thanks in advance.

Answer

Madelene picture Madelene · Jun 19, 2013

The mimetype is probably already added to your IIS.

Try to remove the mimetype first and then add it again in your web.config

<remove fileExtension=".woff"/>
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />

Good luck!