添加< mimeMap>条目在IIS Express上导致其他静态内容500 [英] Adding <mimeMap> entry Causes 500 for Other Static Content on IIS Express

查看:104
本文介绍了添加< mimeMap>条目在IIS Express上导致其他静态内容500的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有Update 2和IIS Express的Visual Studio 2012。

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

当我向staticContent部分添加记录时,所有其他静态内容(.js, .css,.jpg等)返回500错误。

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.

推荐答案

mimetype可能已经添加到您的IIS中。

The mimetype is probably already added to your IIS.

首先尝试删除mimetype,然后在web.config中再次添加它。

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" />

祝你好运!

这篇关于添加&lt; mimeMap&gt;条目在IIS Express上导致其他静态内容500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆