Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
413 views
in Technique[技术] by (71.8m points)

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

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.

question from:https://stackoverflow.com/questions/16201406/adding-mimemap-entry-causes-500-for-other-static-content-on-iis-express

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...