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.
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.
Behavior of
system.webServer/staticContent/mimeMap
element has changed in IIS 7.0 and apparently one has to list all types explicitly to have them returned properly.Here is a description from IIS configuration documentation:
The mimetype is probably already added to your IIS.
Try to remove the mimetype first and then add it again in your web.config
Good luck!
If you are using IIS Express in visual studio then there is no need to define
staticContent
so remove it.By default, Visual studio IIS Express allow all MIME types.